From: Junio C Hamano Date: Sat, 17 Apr 2010 19:40:45 +0000 (-0700) Subject: Merge branch 'maint' X-Git-Tag: v1.7.1-rc2~8 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/f3bd6ab7ea7b35ca5f26f106eb00a00f257716d7?ds=inline;hp=-c Merge branch 'maint' * maint: t1010-mktree: Adjust expected result to code and documentation combined diff: correctly handle truncated file Document new "already-merged" rule for branch -d --- f3bd6ab7ea7b35ca5f26f106eb00a00f257716d7 diff --combined Documentation/git-branch.txt index d78f4c7398,60fa684b1d..1940256930 --- a/Documentation/git-branch.txt +++ b/Documentation/git-branch.txt @@@ -8,7 -8,7 +8,7 @@@ git-branch - List, create, or delete br SYNOPSIS -------- [verse] -'git branch' [--color | --no-color] [-r | -a] +'git branch' [--color[=] | --no-color] [-r | -a] [-v [--abbrev= | --no-abbrev]] [(--merged | --no-merged | --contains) []] 'git branch' [--set-upstream | --track | --no-track] [-l] [-f] [] @@@ -63,7 -63,9 +63,9 @@@ way to clean up all obsolete remote-tra OPTIONS ------- -d:: - Delete a branch. The branch must be fully merged in HEAD. + Delete a branch. The branch must be fully merged in its + upstream branch, or in `HEAD` if no upstream was set with + `--track` or `--set-upstream`. -D:: Delete a branch irrespective of its merged status. @@@ -86,14 -88,12 +88,14 @@@ -M:: Move/rename a branch even if the new branch name already exists. ---color:: +--color[=]:: Color branches to highlight current, local, and remote branches. + The value must be always (the default), never, or auto. --no-color:: Turn off branch colors, even when the configuration file gives the default to color output. + Same as `--color=never`. -r:: List or delete (if used with -d) the remote-tracking branches.