aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-03-19 23:24:48 -0700
committerJunio C Hamano <gitster@pobox.com>2011-03-19 23:24:48 -0700
commitbcd5461a35c2cb876efc9eb9f66505336ecb192f (patch)
tree9ac7a616fa198874af9b85ece5e9c945183cdfce /builtin
parent1e239079f704b840778c263f35f1e299565d4a49 (diff)
parent5d2c3b01604a170c52262bf2751c55053d6bd8c1 (diff)
downloadgit-bcd5461a35c2cb876efc9eb9f66505336ecb192f.tar.gz
git-bcd5461a35c2cb876efc9eb9f66505336ecb192f.tar.xz
Merge branch 'js/rerere-forget-always-take-pathspec'
* js/rerere-forget-always-take-pathspec: rerere forget: deprecate invocation without pathspec
Diffstat (limited to 'builtin')
-rw-r--r--builtin/rerere.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/builtin/rerere.c b/builtin/rerere.c
index 67cbfeb15..82358855d 100644
--- a/builtin/rerere.c
+++ b/builtin/rerere.c
@@ -8,7 +8,7 @@
#include "xdiff-interface.h"
static const char * const rerere_usage[] = {
- "git rerere [clear | status | remaining | diff | gc]",
+ "git rerere [clear | forget path... | status | remaining | diff | gc]",
NULL,
};
@@ -136,7 +136,10 @@ int cmd_rerere(int argc, const char **argv, const char *prefix)
return rerere(flags);
if (!strcmp(argv[0], "forget")) {
- const char **pathspec = get_pathspec(prefix, argv + 1);
+ const char **pathspec;
+ if (argc < 2)
+ warning("'git rerere forget' without paths is deprecated");
+ pathspec = get_pathspec(prefix, argv + 1);
return rerere_forget(pathspec);
}