Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
reflog: rename 'new' variables
author
Brandon Williams
<bmwill@google.com>
Wed, 14 Feb 2018 18:59:34 +0000
(10:59 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 22 Feb 2018 18:08:05 +0000
(10:08 -0800)
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>
builtin/reflog.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
b2e4baf
)
diff --git
a/builtin/reflog.c
b/builtin/reflog.c
index 2233725315ba32832ec5c866b7dbdf72103ac74d..ac3dcd7a51170cd9146d044f6ab70203e6591507 100644
(file)
--- a/
builtin/reflog.c
+++ b/
builtin/reflog.c
@@
-289,20
+289,20
@@
static int should_expire_reflog_ent(struct object_id *ooid, struct object_id *no
const char *message, void *cb_data)
{
struct expire_reflog_policy_cb *cb = cb_data;
const char *message, void *cb_data)
{
struct expire_reflog_policy_cb *cb = cb_data;
- struct commit *old
, *new
;
+ struct commit *old
_commit, *new_commit
;
if (timestamp < cb->cmd.expire_total)
return 1;
if (timestamp < cb->cmd.expire_total)
return 1;
- old
= new
= NULL;
+ old
_commit = new_commit
= NULL;
if (cb->cmd.stalefix &&
if (cb->cmd.stalefix &&
- (!keep_entry(&old
, ooid) || !keep_entry(&new
, noid)))
+ (!keep_entry(&old
_commit, ooid) || !keep_entry(&new_commit
, noid)))
return 1;
if (timestamp < cb->cmd.expire_unreachable) {
if (cb->unreachable_expire_kind == UE_ALWAYS)
return 1;
return 1;
if (timestamp < cb->cmd.expire_unreachable) {
if (cb->unreachable_expire_kind == UE_ALWAYS)
return 1;
- if (unreachable(cb, old
, ooid) || unreachable(cb, new
, noid))
+ if (unreachable(cb, old
_commit, ooid) || unreachable(cb, new_commit
, noid))
return 1;
}
return 1;
}