diff options
| author | Lukas_Sandström <lukass@etek.chalmers.se> | 2005-11-10 00:16:13 +0100 |
|---|---|---|
| committer | Junio C Hamano <junkio@cox.net> | 2005-11-11 21:19:11 -0800 |
| commit | 9bc0f32c77b755b8d77d215cc47fafff53cad6f5 (patch) | |
| tree | 71a65aecd161e0d730d3a88b0ab4a0e654a13af7 /pack-redundant.c | |
| parent | Make git-repack use git-pack-intersect. (diff) | |
| download | git-9bc0f32c77b755b8d77d215cc47fafff53cad6f5.tar.gz git-9bc0f32c77b755b8d77d215cc47fafff53cad6f5.zip | |
Rename git-pack-intersect to git-pack-redundant
This patch renames git-pack-intersect to git-pack-redundant
as suggested by Petr Baudis. The new name reflects what the
program does, rather than how it does it.
Also fix a small argument parsing bug.
Signed-off-by: Lukas Sandström <lukass@etek.chalmers.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to '')
| -rw-r--r-- | pack-redundant.c (renamed from pack-intersect.c) | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pack-intersect.c b/pack-redundant.c index 2267478c36..db3dcde22a 100644 --- a/pack-intersect.c +++ b/pack-redundant.c @@ -8,8 +8,8 @@ #include "cache.h" -static const char pack_intersect_usage[] = -"git-pack-intersect [ -v ] < -a | <.pack filename> ...>"; +static const char pack_redundant_usage[] = +"git-pack-redundant [ -v ] < -a | <.pack filename> ...>"; int all = 0, verbose = 0; @@ -522,8 +522,10 @@ int main(int argc, char **argv) for (i = 1; i < argc; i++) { const char *arg = argv[i]; - if(!strcmp(arg, "--")) + if(!strcmp(arg, "--")) { + i++; break; + } if(!strcmp(arg, "-a")) { all = 1; continue; @@ -533,7 +535,7 @@ int main(int argc, char **argv) continue; } if(*arg == '-') - usage(pack_intersect_usage); + usage(pack_redundant_usage); else break; } |
