diff options
author | Michael Muré <batolettre@gmail.com> | 2019-01-07 23:08:48 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2019-01-07 23:08:48 +0100 |
commit | 43d0fe5caec529baa348b44f6e1cba49e87754a7 (patch) | |
tree | 41ff8ed93f39348ab288cca881b2fead732a5894 /misc | |
parent | 5850116c0dd49bd42413305e2484beb50cbcc914 (diff) | |
download | git-bug-43d0fe5caec529baa348b44f6e1cba49e87754a7.tar.gz |
commands: show: change for a single valued --field flag
Diffstat (limited to 'misc')
-rw-r--r-- | misc/bash_completion/git-bug | 3 | ||||
-rwxr-xr-x | misc/git_hooks/prepare-commit-msg | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/misc/bash_completion/git-bug b/misc/bash_completion/git-bug index c5e8ddf3..d6c28214 100644 --- a/misc/bash_completion/git-bug +++ b/misc/bash_completion/git-bug @@ -644,6 +644,9 @@ _git-bug_show() flags_with_completion=() flags_completion=() + flags+=("--field=") + two_word_flags+=("-f") + local_nonpersistent_flags+=("--field=") must_have_one_flag=() must_have_one_noun=() diff --git a/misc/git_hooks/prepare-commit-msg b/misc/git_hooks/prepare-commit-msg index e1d38c3c..6066d40e 100755 --- a/misc/git_hooks/prepare-commit-msg +++ b/misc/git_hooks/prepare-commit-msg @@ -14,7 +14,7 @@ then hashChar=":" fi -ISSUE=`git bug show --fields shortId` +ISSUE=`git bug show --field shortId` if [ "$ISSUE" = "" ] then echo "$cmtChar !!!!! insert $hashChar<issue_id> in your comment, pick one in list below." >> "$1" |