]> git.ipfire.org Git - thirdparty/git.git/commit - Documentation/git-branch.txt
branch: update output to include worktree info
authorNickolai Belakovski <nbelakovski@gmail.com>
Mon, 29 Apr 2019 05:19:43 +0000 (22:19 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 7 May 2019 04:45:54 +0000 (13:45 +0900)
commitab3138146f9ce1d819cefab4515965604de76d9d
tree7349288594a6da0eb3d6dd0ae556fe6d6745a08c
parent2582083fa1830632e298727e973440907345267f
branch: update output to include worktree info

The output of git branch is modified to mark branches checked out in a
linked worktree with a "+" and color them in cyan (in contrast to the
current branch, which will still be denoted with a "*" and colored in green)

This is meant to communicate to the user that the branches that are
marked or colored will behave differently from other branches if the user
attempts to check them out or delete them, since branches checked out in
another worktree cannot be checked out or deleted.

Signed-off-by: Nickolai Belakovski <nbelakovski@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-branch.txt
builtin/branch.c
t/t3200-branch.sh
t/t3203-branch-output.sh