]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/checkout.c
checkout: factor out some code in parse_branchname_arg()
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Fri, 29 Mar 2019 10:39:01 +0000 (17:39 +0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 2 Apr 2019 04:56:59 +0000 (13:56 +0900)
commit7ab4ad00ccb572574a6dfc73abfb3d5b724ab64e
tree875379ca7a293c27490ccc9c83702cc216f1c805
parent0dabeffc16d3c8f7052a9a6d57c3f9f25cce3431
checkout: factor out some code in parse_branchname_arg()

This is in preparation for the new command restore, which also
needs to parse opts->source_tree but does not need all the
disambiguation logic.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/checkout.c