diff options
author | Eric Sunshine <sunshine@sunshineco.com> | 2015-07-06 13:30:46 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-07-06 11:07:44 -0700 |
commit | 9559ce8368b533862584b2717532e3c25232f1c9 (patch) | |
tree | 2b3536bb3b757ed39bca08040e53f0b6bd381ebb /commit.c | |
parent | c990a4c11dd7bb671da1b30e14568ad986621488 (diff) | |
download | git-9559ce8368b533862584b2717532e3c25232f1c9.tar.gz |
checkout: relocate --to's "no branch specified" check
The plan is to relocate "git checkout --to" functionality to "git
worktree add", however, this check expects a 'struct branch_info' which
git-worktree won't have at hand. It will, however, have access to its
own command-line from which it can pick up the branch name. Therefore,
as a preparatory step, rather than having prepare_linked_checkout()
perform this check, make it the caller's responsibility.
Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions