]> git.ipfire.org Git - thirdparty/git.git/commit - .gitignore
checkout: split part of it to new command 'switch'
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Fri, 29 Mar 2019 10:39:05 +0000 (17:39 +0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 2 Apr 2019 04:56:59 +0000 (13:56 +0900)
commitd787d311dbd7a4104a9dde23b90ae24528a15cf9
tree230257b33d63907678d78b903ac8d75585dd7cc9
parent208718227207480b0f58e35e045e36ed36a59205
checkout: split part of it to new command 'switch'

"git checkout" doing too many things is a source of confusion for many
users (and it even bites old timers sometimes). To remedy that, the
command will be split into two new ones: switch and restore. The good
old "git checkout" command is still here and will be until all (or most
of users) are sick of it.

See the new man page for the final design of switch. The actual
implementation though is still pretty much the same as "git checkout"
and not completely aligned with the man page. Following patches will
adjust their behavior to match the man page.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
14 files changed:
.gitignore
Documentation/config/advice.txt
Documentation/config/branch.txt
Documentation/config/checkout.txt
Documentation/config/diff.txt
Documentation/git-checkout.txt
Documentation/git-switch.txt [new file with mode: 0644]
Documentation/gitattributes.txt
Documentation/githooks.txt
Makefile
builtin.h
builtin/checkout.c
command-list.txt
git.c