diff options
author | Karthik Nayak <karthik.188@gmail.com> | 2015-09-23 20:11:13 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-09-25 17:54:54 +0200 |
commit | aa3bc55e408d4daab52239d6b80f7d4bb87f6de7 (patch) | |
tree | dba5ad427c731161a7925a3f03dc8d0ecaadab08 /t/t3203-branch-output.sh | |
parent | branch.c: use 'ref-filter' APIs (diff) | |
download | git-aa3bc55e408d4daab52239d6b80f7d4bb87f6de7.tar.xz git-aa3bc55e408d4daab52239d6b80f7d4bb87f6de7.zip |
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 't/t3203-branch-output.sh')
-rwxr-xr-x | t/t3203-branch-output.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/t/t3203-branch-output.sh b/t/t3203-branch-output.sh index a427163c4d..f1ae5ff662 100755 --- a/t/t3203-branch-output.sh +++ b/t/t3203-branch-output.sh @@ -154,4 +154,13 @@ test_expect_success 'git branch `--sort` option' ' test_i18ncmp expect actual ' +test_expect_success 'git branch --points-at option' ' + cat >expect <<-\EOF && + branch-one + master + EOF + git branch --points-at=branch-one >actual && + test_cmp expect actual +' + test_done |