From: Junio C Hamano Date: Tue, 8 Feb 2011 10:32:49 +0000 (-0600) Subject: checkout: introduce --detach synonym for "git checkout foo^{commit}" X-Git-Tag: v1.7.5-rc0~117^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=32669671c7746888aa1e3832907deb7fc8405061;p=git.git checkout: introduce --detach synonym for "git checkout foo^{commit}" For example, one might use this when making a temporary merge to test that two topics work well together. Patch by Junio, with tests from Jeff King. [jn: with some extra checks for bogus commandline usage] Suggested-by: Jeff King Signed-off-by: Junio C Hamano Signed-off-by: Jonathan Nieder Signed-off-by: Junio C Hamano --- diff --git a/Documentation/git-checkout.txt b/Documentation/git-checkout.txt index 22d36114d..d162117e7 100644 --- a/Documentation/git-checkout.txt +++ b/Documentation/git-checkout.txt @@ -9,6 +9,7 @@ SYNOPSIS -------- [verse] 'git checkout' [-q] [-f] [-m] [] +'git checkout' [-q] [-f] [-m] [--detach] [] 'git checkout' [-q] [-f] [-m] [[-b|-B|--orphan] ] [] 'git checkout' [-f|--ours|--theirs|-m|--conflict=