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-02-06 22:05:23 -08:00
2019-04-02 13:56:59 +09:00
2018-08-13 14:14:44 -07:00
2019-01-02 13:05:30 -08:00
2019-02-11 12:58:06 -08:00
2019-03-07 09:59:52 +09:00
2019-03-07 09:59:54 +09:00
2019-01-24 12:35:44 -08:00
2019-02-06 22:05:27 -08:00
2019-01-24 11:55:06 -08:00
2019-01-24 11:55:06 -08:00
2017-06-15 12:56:22 -07:00
2017-11-15 12:04:57 +09:00
2019-02-06 22:05:23 -08:00
2019-04-02 13:57:00 +09:00
2019-01-24 11:55:06 -08:00
2019-02-06 22:05:23 -08:00
2018-05-13 10:45:05 +09:00
2019-01-22 11:33:46 -08:00
2019-01-22 11:08:35 -08:00
2019-03-07 09:59:58 +09:00
2019-01-29 12:47:54 -08:00
2018-11-13 14:22:02 +09:00
2017-05-30 14:45:03 +09:00
2019-02-06 22:05:29 -08:00
2019-01-24 11:55:06 -08:00
2019-01-24 11:55:06 -08:00
2019-03-07 09:59:54 +09:00
2019-03-07 09:59:59 +09:00
2019-02-06 22:05:23 -08:00
2019-01-04 13:33:33 -08:00
2019-02-05 14:26:11 -08:00
2019-02-11 12:58:06 -08:00
2018-10-19 13:34:02 +09:00
2017-10-04 11:35:29 +09:00
2019-02-06 22:05:23 -08:00
2019-01-18 13:49:57 -08:00
2017-09-27 15:45:24 +09:00
2019-02-06 22:05:23 -08:00
2019-01-24 11:55:06 -08:00
2019-02-20 12:31:56 -08:00
2019-01-08 09:41:06 -08:00
2019-01-29 12:47:54 -08:00
2018-11-06 12:56:29 +09:00
2019-02-20 12:31:56 -08:00
2019-02-06 22:05:23 -08:00
2018-11-13 22:37:17 +09:00
2019-01-14 15:29:28 -08:00
2017-03-21 11:18:41 -07:00
2017-05-08 12:18:19 +09:00
2018-11-02 11:04:55 +09:00
2018-11-06 12:56:29 +09:00
2019-01-24 11:55:06 -08:00
2019-01-24 11:55:06 -08:00
2019-02-06 22:05:23 -08:00
2019-02-06 22:05:23 -08:00
2019-03-07 09:59:52 +09:00
2018-05-16 11:42:03 +09:00
2018-10-15 12:53:15 +09:00
2018-09-17 13:49:38 -07:00
2019-01-24 11:55:06 -08:00
2018-06-29 10:43:39 -07:00
2019-01-15 15:38:29 -08:00
2019-02-22 15:28:21 -08:00
2019-03-07 09:59:54 +09:00
2018-04-12 11:38:56 +09:00
2017-06-15 12:56:22 -07:00
2019-03-07 09:59:55 +09:00
2019-02-14 15:25:33 -08:00
2019-02-20 12:31:56 -08:00
2019-01-18 13:49:52 -08:00
2018-10-19 13:34:02 +09:00
2019-01-24 11:55:06 -08:00
2019-02-06 22:05:23 -08:00
2019-04-02 13:56:59 +09:00
2019-03-07 09:59:57 +09:00
2019-02-06 22:05:27 -08:00
2017-09-22 12:49:57 +09:00
2017-05-30 14:45:04 +09:00
2018-09-24 10:30:52 -07:00
2019-01-18 13:49:57 -08:00
2019-02-20 12:31:56 -08:00
2019-01-15 15:38:29 -08:00
2019-04-02 13:56:59 +09:00
2019-02-06 22:05:25 -08:00
2019-01-24 11:55:06 -08:00
2019-04-02 13:56:59 +09:00
2019-01-24 11:55:06 -08:00
2019-01-02 13:05:30 -08:00
2018-03-15 12:01:08 -07:00
2018-12-15 12:24:33 +09:00
2018-11-06 12:56:29 +09:00
2018-05-29 00:28:22 +09:00
2019-01-08 09:41:06 -08:00
2018-12-26 15:41:47 -08:00
2019-02-22 15:27:59 -08:00
2017-11-06 10:31:08 +09:00
2018-11-06 12:56:29 +09:00
2018-05-16 11:42:03 +09:00
2018-08-29 11:32:49 -07:00
2019-03-07 09:59:52 +09:00
2018-09-12 15:17:17 -07:00
2018-02-09 10:24:50 -08:00
2018-10-26 10:17:59 +09:00
2018-07-18 15:45:14 -07:00
2017-06-15 12:56:22 -07:00
2018-06-29 10:43:39 -07:00
2017-06-15 12:56:22 -07:00
2018-04-09 06:14:45 +09:00
2019-02-22 15:28:21 -08:00
2019-01-24 11:55:06 -08:00