git-branch: improve abbreviation of sha1s in verbose mode
authorJulian Phillips <julian@quantumfyre.co.uk>
Sat, 3 Mar 2007 00:31:16 +0000 (00:31 +0000)
committerJunio C Hamano <junkio@cox.net>
Sat, 3 Mar 2007 00:38:47 +0000 (16:38 -0800)
commit43bc820db78be5e3230ae675018a7a7af50ccc88
treef01d249967bb8c084b9bb1ceda21be83540b4766
parent62273826fe977d4c1fa445edf9d0e4ab02274fa2
git-branch: improve abbreviation of sha1s in verbose mode

git-branch has an --abbrev= command line option, but it does
no checking of the input.  Take the argument parsing code from
setup_revisions in revisions.c, and also the code for parsing
the --no-abbrev option.

Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-branch.c