aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-01-07 23:08:48 +0100
committerMichael Muré <batolettre@gmail.com>2019-01-07 23:08:48 +0100
commit43d0fe5caec529baa348b44f6e1cba49e87754a7 (patch)
tree41ff8ed93f39348ab288cca881b2fead732a5894 /misc
parent5850116c0dd49bd42413305e2484beb50cbcc914 (diff)
downloadgit-bug-43d0fe5caec529baa348b44f6e1cba49e87754a7.tar.gz
commands: show: change for a single valued --field flag
Diffstat (limited to 'misc')
-rw-r--r--misc/bash_completion/git-bug3
-rwxr-xr-xmisc/git_hooks/prepare-commit-msg2
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"