summaryrefslogtreecommitdiff
path: root/builtin/for-each-ref.c
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2021-03-03 15:16:08 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-03-03 15:16:08 +0900
commit89d3f2b6c0acc1c82ff866472d3760b2c62f587a (patch)
treea15b54eb544033f8c1ad04dd0a5278a59cc36cc9 /builtin/for-each-ref.c
parent13d380c8c857b57c44ebb2132ba3737d1c826143 (diff)
downloadgit-89d3f2b6c0acc1c82ff866472d3760b2c62f587a.tar.gz
git-89d3f2b6c0acc1c82ff866472d3760b2c62f587a.tar.bz2
git-89d3f2b6c0acc1c82ff866472d3760b2c62f587a.zip
Imported Upstream version 2.13.0upstream/2.13.0
Diffstat (limited to 'builtin/for-each-ref.c')
-rw-r--r--builtin/for-each-ref.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/builtin/for-each-ref.c b/builtin/for-each-ref.c
index df41fa03..eca365bf 100644
--- a/builtin/for-each-ref.c
+++ b/builtin/for-each-ref.c
@@ -8,8 +8,8 @@
static char const * const for_each_ref_usage[] = {
N_("git for-each-ref [<options>] [<pattern>]"),
N_("git for-each-ref [--points-at <object>]"),
- N_("git for-each-ref [(--merged | --no-merged) [<object>]]"),
- N_("git for-each-ref [--contains [<object>]]"),
+ N_("git for-each-ref [(--merged | --no-merged) [<commit>]]"),
+ N_("git for-each-ref [--contains [<commit>]] [--no-contains [<commit>]]"),
NULL
};
@@ -43,6 +43,7 @@ int cmd_for_each_ref(int argc, const char **argv, const char *prefix)
OPT_MERGED(&filter, N_("print only refs that are merged")),
OPT_NO_MERGED(&filter, N_("print only refs that are not merged")),
OPT_CONTAINS(&filter.with_commit, N_("print only refs which contain the commit")),
+ OPT_NO_CONTAINS(&filter.no_commit, N_("print only refs which don't contain the commit")),
OPT_BOOL(0, "ignore-case", &icase, N_("sorting and filtering are case insensitive")),
OPT_END(),
};