Merge branch 'jc/shortlog-ref-exclude'
"log --exclude=<glob> --all | shortlog" worked as expected, but "shortlog --exclude=<glob> --all" was not accepted at the command line argument parser level. * jc/shortlog-ref-exclude: shortlog: allow --exclude=<glob> to be passed
This commit is contained in:
commit
07768e03b5
@ -1633,6 +1633,7 @@ static int handle_revision_opt(struct rev_info *revs, int argc, const char **arg
|
|||||||
!strcmp(arg, "--reflog") || !strcmp(arg, "--not") ||
|
!strcmp(arg, "--reflog") || !strcmp(arg, "--not") ||
|
||||||
!strcmp(arg, "--no-walk") || !strcmp(arg, "--do-walk") ||
|
!strcmp(arg, "--no-walk") || !strcmp(arg, "--do-walk") ||
|
||||||
!strcmp(arg, "--bisect") || starts_with(arg, "--glob=") ||
|
!strcmp(arg, "--bisect") || starts_with(arg, "--glob=") ||
|
||||||
|
starts_with(arg, "--exclude=") ||
|
||||||
starts_with(arg, "--branches=") || starts_with(arg, "--tags=") ||
|
starts_with(arg, "--branches=") || starts_with(arg, "--tags=") ||
|
||||||
starts_with(arg, "--remotes=") || starts_with(arg, "--no-walk="))
|
starts_with(arg, "--remotes=") || starts_with(arg, "--no-walk="))
|
||||||
{
|
{
|
||||||
|
@ -188,4 +188,10 @@ test_expect_success 'shortlog ignores commits with missing authors' '
|
|||||||
test_cmp expect actual
|
test_cmp expect actual
|
||||||
'
|
'
|
||||||
|
|
||||||
|
test_expect_success 'shortlog with revision pseudo options' '
|
||||||
|
git shortlog --all &&
|
||||||
|
git shortlog --branches &&
|
||||||
|
git shortlog --exclude=refs/heads/m* --all
|
||||||
|
'
|
||||||
|
|
||||||
test_done
|
test_done
|
||||||
|
Loading…
Reference in New Issue
Block a user