aboutsummaryrefslogtreecommitdiff
path: root/builtin-mv.c
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2009-11-09 04:47:34 -0600
committerJunio C Hamano <gitster@pobox.com>2009-11-10 11:59:51 -0800
commit548d3464dc446db58a8fc8f7a8cc6cfb2d683faa (patch)
treeca41163c421bac78146a8fc6a63e9ae6065cb698 /builtin-mv.c
parent616f86d71325da1ce692f8e878fe066758f88554 (diff)
downloadgit-548d3464dc446db58a8fc8f7a8cc6cfb2d683faa.tar.gz
git-548d3464dc446db58a8fc8f7a8cc6cfb2d683faa.tar.xz
Show usage string for 'git http-push -h'
http-push already knows how to dump usage if it is given no options, but it interprets '-h' as the URL to a remote repository: $ git http-push -h error: Cannot access URL -h/, return code 6 Dump usage instead. Humans wanting to pass the URL -h/ to curl for some reason can use 'git http-push -h/' explicitly. Scripts expecting to access an HTTP repository at URL '-h' will break, though. Also delay finding a git directory until after option parsing, so "http-push -h" can be used outside any git repository. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Acked-by: Tay Ray Chuan <rctay89@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-mv.c')
0 files changed, 0 insertions, 0 deletions