aboutsummaryrefslogtreecommitdiff
path: root/copy.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@osdl.org>2006-04-15 11:13:49 -0700
committerJunio C Hamano <junkio@cox.net>2006-04-15 18:17:46 -0700
commit1cd95087c331e17c44a8b62f0614d55e621dcfd4 (patch)
tree6947ed070db888fc2ab12a7c32df58287f0de8fd /copy.c
parent6f4780f9dfd3bc6b23f9ea66b3d49577e0a0c2f9 (diff)
downloadgit-1cd95087c331e17c44a8b62f0614d55e621dcfd4.tar.gz
git-1cd95087c331e17c44a8b62f0614d55e621dcfd4.tar.xz
Support "git cmd --help" syntax
The "--help" argument is special, in that it is (along with "--version") in that is taken by the "git" program itself rather than the sub-command, and thus we've had the syntax "git --help cmd". However, as anybody who has ever used CVS or some similar devil-spawn program, it's confusing as h*ll when options before the sub-command act differently from options after the sub-command, so this quick hack just makes it acceptable to do "git cmd --help" instead, and get the exact same result. It may be hacky, but it's simple and does the trick. Of course, this does not help if you use one of the non-builtin commands without using the "git" helper. Ie you won't be getting a man-page just because you do "git-rev-list --help". Don't expect us to be quite _that_ helpful. Signed-off-by: Linus Torvalds <torvalds@osdl.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'copy.c')
0 files changed, 0 insertions, 0 deletions