summaryrefslogtreecommitdiff
path: root/contrib/examples/git-checkout.sh
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2015-05-21 00:45:43 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-05-22 09:33:08 -0700
commit48c58471c2d4d7293272448a18801cd27555f6b5 (patch)
treee892529cc4aa57b414a643aa2062bac0fa476707 /contrib/examples/git-checkout.sh
parentsha1_name: refactor upstream_mark (diff)
downloadtgif-48c58471c2d4d7293272448a18801cd27555f6b5.tar.xz
sha1_name: refactor interpret_upstream_mark
Now that most of the logic for our local get_upstream_branch has been pushed into the generic branch_get_upstream, we can fold the remainder into interpret_upstream_mark. Furthermore, what remains is generic to any branch-related "@{foo}" we might add in the future, and there's enough boilerplate that we'd like to reuse it. Let's parameterize the two operations (parsing the mark and computing its value) so that we can reuse this for "@{push}" in the near future. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/examples/git-checkout.sh')
0 files changed, 0 insertions, 0 deletions