diff options
author | Lars Hjemli <hjemli@gmail.com> | 2006-11-24 14:45:10 +0100 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-11-24 20:52:54 -0800 |
commit | 75e6e2132006770156d9df1881b4114862919c94 (patch) | |
tree | 0ad08fc69ffe1dd35e6094f41ad4dd665b6bc126 /Documentation | |
parent | git-clone: stop dumb protocol from copying refs outside heads/ and tags/. (diff) | |
download | tgif-75e6e2132006770156d9df1881b4114862919c94.tar.xz |
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')
-rw-r--r-- | Documentation/git-branch.txt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Documentation/git-branch.txt b/Documentation/git-branch.txt index 5376760813..4f5b5d5028 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 |