summaryrefslogtreecommitdiffstats
path: root/cache-tree.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2014-06-18 21:56:48 +0200
committerJunio C Hamano <gitster@pobox.com>2014-06-20 19:45:19 +0200
commit6d87780399e1196932cd5ea72f84aa90224e7402 (patch)
tree60383d002c2ca86a920a0f8df186c8e649a6495a /cache-tree.h
parentfetch-pack: refactor parsing in get_ack (diff)
downloadgit-6d87780399e1196932cd5ea72f84aa90224e7402.tar.xz
git-6d87780399e1196932cd5ea72f84aa90224e7402.zip
git: avoid magic number with skip_prefix
After handling options, any leftover arguments should be commands. However, we pass through "--help" and "--version", so that we convert them into "git help" and "git version" respectively. This is a straightforward use of skip_prefix to avoid a magic number, but while we are there, it is worth adding a comment to explain this otherwise confusing behavior. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache-tree.h')
0 files changed, 0 insertions, 0 deletions