aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2021-02-27 20:39:27 +0100
committerGitHub <noreply@github.com>2021-02-27 20:39:27 +0100
commit22cc4cc043370bac945f92ecf343025ce7fdfe33 (patch)
treea0162d685c22d274dd4e5916d8cf46136c7dc0ea /misc
parent10a259b6823e1234e5add1ee62935f259c39f803 (diff)
parentfab626a7a663a8fa6ef27848bb63e91af812ab8c (diff)
downloadgit-bug-22cc4cc043370bac945f92ecf343025ce7fdfe33.tar.gz
Merge pull request #568 from vmiklos/search-metadata
Add ability to search by arbitrary metadata
Diffstat (limited to 'misc')
-rw-r--r--misc/bash_completion/git-bug6
-rw-r--r--misc/powershell_completion/git-bug2
2 files changed, 8 insertions, 0 deletions
diff --git a/misc/bash_completion/git-bug b/misc/bash_completion/git-bug
index 912e87b4..3cedd86a 100644
--- a/misc/bash_completion/git-bug
+++ b/misc/bash_completion/git-bug
@@ -851,6 +851,12 @@ _git-bug_ls()
local_nonpersistent_flags+=("--author")
local_nonpersistent_flags+=("--author=")
local_nonpersistent_flags+=("-a")
+ flags+=("--metadata=")
+ two_word_flags+=("--metadata")
+ two_word_flags+=("-m")
+ local_nonpersistent_flags+=("--metadata")
+ local_nonpersistent_flags+=("--metadata=")
+ local_nonpersistent_flags+=("-m")
flags+=("--participant=")
two_word_flags+=("--participant")
two_word_flags+=("-p")
diff --git a/misc/powershell_completion/git-bug b/misc/powershell_completion/git-bug
index c2aa0adf..29cb327a 100644
--- a/misc/powershell_completion/git-bug
+++ b/misc/powershell_completion/git-bug
@@ -146,6 +146,8 @@ Register-ArgumentCompleter -Native -CommandName 'git-bug' -ScriptBlock {
[CompletionResult]::new('--status', 'status', [CompletionResultType]::ParameterName, 'Filter by status. Valid values are [open,closed]')
[CompletionResult]::new('-a', 'a', [CompletionResultType]::ParameterName, 'Filter by author')
[CompletionResult]::new('--author', 'author', [CompletionResultType]::ParameterName, 'Filter by author')
+ [CompletionResult]::new('-m', 'm', [CompletionResultType]::ParameterName, 'Filter by metadata. Example: github-url=URL')
+ [CompletionResult]::new('--metadata', 'metadata', [CompletionResultType]::ParameterName, 'Filter by metadata. Example: github-url=URL')
[CompletionResult]::new('-p', 'p', [CompletionResultType]::ParameterName, 'Filter by participant')
[CompletionResult]::new('--participant', 'participant', [CompletionResultType]::ParameterName, 'Filter by participant')
[CompletionResult]::new('-A', 'A', [CompletionResultType]::ParameterName, 'Filter by actor')