diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-02-08 04:32:49 -0600 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-02-08 11:14:26 -0800 |
commit | 32669671c7746888aa1e3832907deb7fc8405061 (patch) | |
tree | 220c9c720a79dab724e328a9fab9737592f5f3df /builtin/ls-files.c | |
parent | checkout: split off a function to peel away branchname arg (diff) | |
download | tgif-32669671c7746888aa1e3832907deb7fc8405061.tar.xz |
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 <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/ls-files.c')
0 files changed, 0 insertions, 0 deletions