From: KIYOTA Fumiya <aimluck.kiyota@gmail.com>
1. '--exclude=' option to 'git log' and 'git shortlog' are missing. Add the
option to __git_log_shortlog_options.
2. The `--committer` option in `git log` requires a pattern, such as
`--committer=ba`, but in `git shortlog`, specifying a pattern results in
an error: “error: option `committer' takes no value.” Handle them as
separate options for completion rather than a shared one.
Signed-off-by: KIYOTA Fumiya <aimluck.kiyota@gmail.com>
---
completion: complete some 'git log' options
Change since v1:
* Make the commit message follow the Git project’s style.
v1:
1. '--exclude=' option to 'git log' and 'git shortlog' are missing. Add
the option to __git_log_shortlog_options.
2. The --committer option in git log requires a pattern, such as
--committer=ba, but in git shortlog, specifying a pattern results in
an error: “error: option `committer' takes no value.” Therefore,
I’ll handle them as separate options for completion rather than a
shared one.Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-2073%2FFKbelm%2FlogCompletion-v2
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-2073/FKbelm/logCompletion-v2
Pull-Request: https://github.com/git/git/pull/2073
Range-diff vs v1:
1: 2887b0e6c9 ! 1: d8edd3653a completion: complete some 'git log' options
@@ Commit message
2. The `--committer` option in `git log` requires a pattern, such as
`--committer=ba`, but in `git shortlog`, specifying a pattern results in
- an error: “error: option `committer' takes no value.” Therefore, I’ll
- handle them as separate options for completion rather than a shared one.
+ an error: “error: option `committer' takes no value.” Handle them as
+ separate options for completion rather than a shared one.
Signed-off-by: KIYOTA Fumiya <aimluck.kiyota@gmail.com>
contrib/completion/git-completion.bash | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)