]> git.ipfire.org Git - thirdparty/git.git/commit
switch: add short option for --detach
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Fri, 29 Mar 2019 10:39:12 +0000 (17:39 +0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 2 Apr 2019 04:57:00 +0000 (13:57 +0900)
commit163e3b2975cf07e72c81df4bcdf3d74ae667f4d8
tree8a9ba4f21d553574058a94e47ec62d7a5d397eb1
parent7968bef06b750fe9c59c1e1d0573bffc5b3cd94f
switch: add short option for --detach

"git checkout" automatically detaches branches and --detach is not
that useful (--no-detach is more likely). But for "switch", you
may want to use it more often once you're used to detached HEAD. This
of course adds -d to git-checkout but it does not harm (yet?) to do it.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/checkout.c