author | Junio C Hamano <gitster@pobox.com> | |
Sat, 21 Mar 2009 19:51:34 +0000 (12:51 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 23 Mar 2009 06:36:47 +0000 (23:36 -0700) | ||
commit | 431b1969fcde69959a23355fba6894fb69c8fa0c | |
tree | f8abd4ca9650a62e3b46a0e35ce083654e71bcec | tree | snapshot |
parent | 91408042768c05347c1b9f081a00387ca07b26fe | commit | diff |
Rename interpret/substitute nth_last_branch functions
These allow you to say "git checkout @{-2}" to switch to the branch two
"branch switching" ago by pretending as if you typed the name of that
branch. As it is likely that we will be introducing more short-hands to
write the name of a branch without writing it explicitly, rename the
functions from "nth_last_branch" to more generic "branch_name", to prepare
for different semantics.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
These allow you to say "git checkout @{-2}" to switch to the branch two
"branch switching" ago by pretending as if you typed the name of that
branch. As it is likely that we will be introducing more short-hands to
write the name of a branch without writing it explicitly, rename the
functions from "nth_last_branch" to more generic "branch_name", to prepare
for different semantics.
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 | |
cache.h | diff | blob | history | |
sha1_name.c | diff | blob | history |