My Various Git Projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05b4ed6
)
fsck: s/++i > 1/i++/
author
Junio C Hamano
<gitster@pobox.com>
Wed, 24 Oct 2018 01:25:12 +0000
(10:25 +0900)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 24 Oct 2018 01:25:12 +0000
(10:25 +0900)
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fsck.c
patch
|
blob
|
history
diff --git
a/fsck.c
b/fsck.c
index
0f56977
..
d44c46c
100644
(file)
--- a/
fsck.c
+++ b/
fsck.c
@@
-485,7
+485,7
@@
static int fsck_walk_commit(struct commit *commit, void *data, struct fsck_optio
if (name) {
struct object *obj = &parents->item->object;
- if (
++counter > 1
)
+ if (
counter++
)
put_object_name(options, obj, "%s^%d",
name, counter);
else if (generation > 0)