]> granicus.if.org Git - git/commit
worktree: populate via "git reset --hard" rather than "git checkout"
authorEric Sunshine <sunshine@sunshineco.com>
Fri, 17 Jul 2015 23:00:16 +0000 (19:00 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 20 Jul 2015 18:29:52 +0000 (11:29 -0700)
commit1c56190aec502d946eb3db7365d6e54e2ffc7bd2
treeeeacd225b72e0374f1929fbe77d120c3f3f31a6a
parented197a6ab983783550bd0b0c71cb97d734f4cfaa
worktree: populate via "git reset --hard" rather than "git checkout"

Now that git-worktree handles all functionality (--force, --detach,
-b/-B) previously delegated to git-checkout, actual population of the
new worktree can be accomplished more directly and lightweight with
"git reset --hard" in place of "git checkout".

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/worktree.c