diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-05-30 12:57:25 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-06-04 13:41:33 -0700 |
commit | eb077745a4f22183faec93e46e053ccddabcc88b (patch) | |
tree | 7648824b423c26f858b7ef2eec39b179b681268e /revision.c | |
parent | e7b432c521b0177e86eaecd2bd16906b9fc53e10 (diff) | |
download | git-eb077745a4f22183faec93e46e053ccddabcc88b.tar.gz git-eb077745a4f22183faec93e46e053ccddabcc88b.tar.xz |
shortlog: allow --exclude=<glob> to be passed
These two commands are supposed to be equivalent:
$ git log --exclude=refs/notes/\* --all --no-merges --since=2.days |
git shortlog
$ git shortlog --exclude=refs/notes/\* --all --no-merges --since=2.days
However, the latter does not understand the ref-exclusion command
line option, even though other options understood by "log", such as
"--all" and "--no-merges", are understood.
This was because e7b432c5 (revision: introduce --exclude=<glob> to
tame wildcards, 2013-08-30) did not wire the new option fully to the
machinery. A new option understood by handle_revision_pseudo_opt()
must be told to handle_revision_opt() as well.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'revision.c')
-rw-r--r-- | revision.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/revision.c b/revision.c index 3e8287425..9daaf3580 100644 --- a/revision.c +++ b/revision.c @@ -1612,6 +1612,7 @@ static int handle_revision_opt(struct rev_info *revs, int argc, const char **arg !strcmp(arg, "--reflog") || !strcmp(arg, "--not") || !strcmp(arg, "--no-walk") || !strcmp(arg, "--do-walk") || !strcmp(arg, "--bisect") || !prefixcmp(arg, "--glob=") || + !prefixcmp(arg, "--exclude=") || !prefixcmp(arg, "--branches=") || !prefixcmp(arg, "--tags=") || !prefixcmp(arg, "--remotes=") || !prefixcmp(arg, "--no-walk=")) { |