Skip to content

Commit dfa5990

Browse files
bmwillgitster
authored andcommitted
reflog: rename 'new' variables
Rename C++ keyword in order to bring the codebase closer to being able to be compiled with a C++ compiler. Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent b2e4baf commit dfa5990

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

builtin/reflog.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -289,20 +289,20 @@ static int should_expire_reflog_ent(struct object_id *ooid, struct object_id *no
289289
const char *message, void *cb_data)
290290
{
291291
struct expire_reflog_policy_cb *cb = cb_data;
292-
struct commit *old, *new;
292+
struct commit *old_commit, *new_commit;
293293

294294
if (timestamp < cb->cmd.expire_total)
295295
return 1;
296296

297-
old = new = NULL;
297+
old_commit = new_commit = NULL;
298298
if (cb->cmd.stalefix &&
299-
(!keep_entry(&old, ooid) || !keep_entry(&new, noid)))
299+
(!keep_entry(&old_commit, ooid) || !keep_entry(&new_commit, noid)))
300300
return 1;
301301

302302
if (timestamp < cb->cmd.expire_unreachable) {
303303
if (cb->unreachable_expire_kind == UE_ALWAYS)
304304
return 1;
305-
if (unreachable(cb, old, ooid) || unreachable(cb, new, noid))
305+
if (unreachable(cb, old_commit, ooid) || unreachable(cb, new_commit, noid))
306306
return 1;
307307
}
308308

0 commit comments

Comments
 (0)