author | Junio C Hamano <gitster@pobox.com> | |
Sat, 21 Mar 2009 20:17:30 +0000 (13:17 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 23 Mar 2009 06:44:08 +0000 (23:44 -0700) | ||
commit | a552de75eb01f78046feaf7dc88e5e4833624ad5 | |
tree | d069272f15dc3876743f24ed75c43f4209c004b4 | tree | snapshot |
parent | 431b1969fcde69959a23355fba6894fb69c8fa0c | commit | diff |
strbuf_branchname(): a wrapper for branch name shorthands
The function takes a user-supplied string that is supposed to be a branch
name, and puts it in a strbuf after expanding possible shorthand notation.
A handful of open coded sequence to do this in the existing code have been
changed to use this helper function.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The function takes a user-supplied string that is supposed to be a branch
name, and puts it in a strbuf after expanding possible shorthand notation.
A handful of open coded sequence to do this in the existing code have been
changed to use this helper function.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
branch.c | diff | blob | history | |
builtin-branch.c | diff | blob | history | |
builtin-checkout.c | diff | blob | history | |
builtin-merge.c | diff | blob | history | |
strbuf.c | diff | blob | history | |
strbuf.h | diff | blob | history |