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 /builtin/commit-tree.c | |
| parent | checkout: fix bug with --to and relative HEAD (diff) | |
| download | git-9559ce8368b533862584b2717532e3c25232f1c9.tar.gz git-9559ce8368b533862584b2717532e3c25232f1c9.zip | |
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 'builtin/commit-tree.c')
0 files changed, 0 insertions, 0 deletions
