summaryrefslogtreecommitdiff
path: root/Documentation/git-branch.txt
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2006-11-24 13:45:10 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-11-25 04:52:54 (GMT)
commit75e6e2132006770156d9df1881b4114862919c94 (patch)
tree0ad08fc69ffe1dd35e6094f41ad4dd665b6bc126 /Documentation/git-branch.txt
parent983d2ee284936e8bf14823863d3945b4d8740b94 (diff)
downloadgit-75e6e2132006770156d9df1881b4114862919c94.zip
git-75e6e2132006770156d9df1881b4114862919c94.tar.gz
git-75e6e2132006770156d9df1881b4114862919c94.tar.bz2
Add -v and --abbrev options to git-branch
The new -v option makes git-branch show the abbreviated sha1 + subjectline for each branch. Additionally, minimum abbreviation length can be specified with --abbrev=<length> Signed-off-by: Lars Hjemli <hjemli@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Documentation/git-branch.txt')
-rw-r--r--Documentation/git-branch.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/Documentation/git-branch.txt b/Documentation/git-branch.txt
index 5376760..4f5b5d5 100644
--- a/Documentation/git-branch.txt
+++ b/Documentation/git-branch.txt
@@ -8,7 +8,7 @@ git-branch - List, create, or delete branches.
SYNOPSIS
--------
[verse]
-'git-branch' [-r] [-a]
+'git-branch' [-r] [-a] [-v] [--abbrev=<length>]
'git-branch' [-l] [-f] <branchname> [<start-point>]
'git-branch' (-d | -D) <branchname>...
@@ -52,6 +52,13 @@ OPTIONS
-a::
List both remote-tracking branches and local branches.
+-v::
+ Show sha1 and subject message for each head.
+
+--abbrev=<length>::
+ Alter minimum display length for sha1 in output listing,
+ default value is 7.
+
<branchname>::
The name of the branch to create or delete.
The new branch name must pass all checks defined by