Files
git/Documentation
Nguyễn Thái Ngọc Duy 65f099b398 switch: no worktree status unless real branch switch happens
When we switch from one branch to another, it makes sense to show a
summary of local changes since there could be conflicts, or some files
left modified.... When switch is used solely for creating a new
branch (and "switch" to the same commit) or detaching, we don't really
need to show anything.

"git checkout" does it anyway for historical reasons. But we can start
with a clean slate with switch and don't have to.

This essentially reverts fa655d8411 (checkout: optimize "git checkout
-b <new_branch>" - 2018-08-16) and make it default for switch,
but also for -B and --detach. Users of big repos are encouraged to
move to switch.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2019-04-02 13:57:00 +09:00
..
2019-03-11 16:18:22 +09:00
2019-03-07 09:59:56 +09:00
2019-02-06 22:05:30 -08:00
2019-01-23 11:37:29 -08:00
2018-06-25 13:22:36 -07:00
2019-01-23 11:37:29 -08:00
2019-01-23 11:37:29 -08:00
2019-01-23 11:37:29 -08:00
2019-01-23 11:37:29 -08:00
2019-03-11 16:16:26 +09:00
2018-10-03 21:25:57 -07:00
2019-01-23 11:37:29 -08:00
2019-04-02 13:56:58 +09:00
2019-01-23 11:37:29 -08:00
2016-08-11 14:35:42 -07:00
2018-09-17 13:53:55 -07:00
2019-01-23 11:37:29 -08:00
2019-01-23 11:37:29 -08:00
2019-01-23 11:37:29 -08:00
2019-01-23 11:37:29 -08:00
2018-12-26 14:59:37 -08:00
2018-04-18 12:49:26 +09:00