diff options
author | Karthik Nayak <karthik.188@gmail.com> | 2015-07-07 21:36:10 +0530 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-08-03 10:25:28 -0700 |
commit | d325406ef2f3c819d02ac838fb2a3f8e021d08ae (patch) | |
tree | 224d02444d6b885aaa809ed488a217d24060052c /Documentation | |
parent | ref-filter: implement '--points-at' option (diff) | |
download | tgif-d325406ef2f3c819d02ac838fb2a3f8e021d08ae.tar.xz |
for-each-ref: add '--points-at' option
Add the '--points-at' option provided by 'ref-filter'. The
option lets the user to list only refs which points at the
given object.
Add documentation and tests for the same.
Based-on-patch-by: Jeff King <peff@peff.net>
Mentored-by: Christian Couder <christian.couder@gmail.com>
Mentored-by: Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/git-for-each-ref.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/git-for-each-ref.txt b/Documentation/git-for-each-ref.txt index 7f8d9a5b5f..ff0283beca 100644 --- a/Documentation/git-for-each-ref.txt +++ b/Documentation/git-for-each-ref.txt @@ -10,6 +10,7 @@ SYNOPSIS [verse] 'git for-each-ref' [--count=<count>] [--shell|--perl|--python|--tcl] [(--sort=<key>)...] [--format=<format>] [<pattern>...] + [--points-at <object>] DESCRIPTION ----------- @@ -62,6 +63,8 @@ OPTIONS the specified host language. This is meant to produce a scriptlet that can directly be `eval`ed. +--points-at <object>:: + Only list refs which points at the given object. FIELD NAMES ----------- |