diff options
author | Daniels Umanovskis <daniels@umanovskis.se> | 2018-10-25 21:04:21 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-10-26 10:35:00 +0900 |
commit | 0ecb1fc7269e15be890870937b8b639c987abd08 (patch) | |
tree | edf506ae54602e0ee6aec9c10986fe928483b9bd /t/helper/test-repository.c | |
parent | Third batch for 2.20 (diff) | |
download | tgif-0ecb1fc7269e15be890870937b8b639c987abd08.tar.xz |
branch: introduce --show-current display option
When called with --show-current, git branch will print the current
branch name and terminate. Only the actual name gets printed,
without refs/heads. In detached HEAD state, nothing is output.
Intended both for scripting and interactive/informative use.
Unlike git branch --list, no filtering is needed to just get the
branch name.
Signed-off-by: Daniels Umanovskis <daniels@umanovskis.se>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-repository.c')
0 files changed, 0 insertions, 0 deletions