diff options
author | Karthik Nayak <karthik.188@gmail.com> | 2015-09-23 23:41:13 +0530 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-09-25 08:54:54 -0700 |
commit | aa3bc55e408d4daab52239d6b80f7d4bb87f6de7 (patch) | |
tree | dba5ad427c731161a7925a3f03dc8d0ecaadab08 /Documentation | |
parent | branch.c: use 'ref-filter' APIs (diff) | |
download | tgif-aa3bc55e408d4daab52239d6b80f7d4bb87f6de7.tar.xz |
branch: add '--points-at' option
Add the '--points-at' option provided by 'ref-filter'. The option lets
the user to list only branches which points at the given object.
Add documentation and tests for the same.
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-branch.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Documentation/git-branch.txt b/Documentation/git-branch.txt index c45295d988..03c7af1b90 100644 --- a/Documentation/git-branch.txt +++ b/Documentation/git-branch.txt @@ -11,7 +11,8 @@ SYNOPSIS 'git branch' [--color[=<when>] | --no-color] [-r | -a] [--list] [-v [--abbrev=<length> | --no-abbrev]] [--column[=<options>] | --no-column] - [(--merged | --no-merged | --contains) [<commit>]] [--sort=<key>] [<pattern>...] + [(--merged | --no-merged | --contains) [<commit>]] [--sort=<key>] + [--points-at <object>] [<pattern>...] 'git branch' [--set-upstream | --track | --no-track] [-l] [-f] <branchname> [<start-point>] 'git branch' (--set-upstream-to=<upstream> | -u <upstream>) [<branchname>] 'git branch' --unset-upstream [<branchname>] @@ -240,6 +241,9 @@ start-point is either a local or remote-tracking branch. finally remote-tracking branches. +--points-at <object>:: + Only list branches of the given object. + Examples -------- |