From cb61245078a0e8f14e359ed20e0582a695645a08 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Sun, 14 Feb 2021 16:03:51 +0100 Subject: Add ability to search by arbitrary metadata Example: ~/git/git-bug/git-bug ls --metadata github-url=https://github.com/author/myproject/issues/42 or ~/git/git-bug/git-bug ls metadata:github-url:\"https://github.com/author/myproject/issues/42\" Fixes the cmdline part of . --- doc/man/git-bug-ls.1 | 4 ++++ doc/md/git-bug_ls.md | 1 + 2 files changed, 5 insertions(+) (limited to 'doc') diff --git a/doc/man/git-bug-ls.1 b/doc/man/git-bug-ls.1 index a0e60db7..0ab51709 100644 --- a/doc/man/git-bug-ls.1 +++ b/doc/man/git-bug-ls.1 @@ -28,6 +28,10 @@ You can pass an additional query to filter and order the list. This query can be \fB\-a\fP, \fB\-\-author\fP=[] Filter by author +.PP +\fB\-m\fP, \fB\-\-metadata\fP=[] + Filter by metadata. Example: github\-url=URL + .PP \fB\-p\fP, \fB\-\-participant\fP=[] Filter by participant diff --git a/doc/md/git-bug_ls.md b/doc/md/git-bug_ls.md index df54224f..7d1e490d 100644 --- a/doc/md/git-bug_ls.md +++ b/doc/md/git-bug_ls.md @@ -34,6 +34,7 @@ git bug ls status:open --by creation "foo bar" baz ``` -s, --status strings Filter by status. Valid values are [open,closed] -a, --author strings Filter by author + -m, --metadata strings Filter by metadata. Example: github-url=URL -p, --participant strings Filter by participant -A, --actor strings Filter by actor -l, --label strings Filter by label -- cgit