Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git-verify-pack: no need to count errors
author
Rene Scharfe
<rene.scharfe@lsrfire.ath.cx>
Thu, 10 Aug 2006 15:02:37 +0000
(17:02 +0200)
committer
Junio C Hamano
<junkio@cox.net>
Thu, 10 Aug 2006 21:16:02 +0000
(14:16 -0700)
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <junkio@cox.net>
verify-pack.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
f711ab5
)
diff --git
a/verify-pack.c
b/verify-pack.c
index 99c352ee3a48b03c724d7abcbe60e7136083bf71..f440a39678b23ebb9d58115f0481875add21e981 100644
(file)
--- a/
verify-pack.c
+++ b/
verify-pack.c
@@
-49,7
+49,7
@@
static const char verify_pack_usage[] = "git-verify-pack [-v] <pack>...";
int main(int ac, char **av)
{
int main(int ac, char **av)
{
- int err
s
= 0;
+ int err = 0;
int verbose = 0;
int no_more_options = 0;
int nothing_done = 1;
int verbose = 0;
int no_more_options = 0;
int nothing_done = 1;
@@
-65,7
+65,7
@@
int main(int ac, char **av)
}
else {
if (verify_one_pack(av[1], verbose))
}
else {
if (verify_one_pack(av[1], verbose))
- err
s++
;
+ err
= 1
;
nothing_done = 0;
}
ac--; av++;
nothing_done = 0;
}
ac--; av++;
@@
-74,5
+74,5
@@
int main(int ac, char **av)
if (nothing_done)
usage(verify_pack_usage);
if (nothing_done)
usage(verify_pack_usage);
- return
!!errs
;
+ return
err
;
}
}