git: avoid magic number with skip_prefix
authorJeff King <redacted>
Wed, 18 Jun 2014 19:56:48 +0000 (15:56 -0400)
committerJunio C Hamano <redacted>
Fri, 20 Jun 2014 17:45:19 +0000 (10:45 -0700)
commit6d87780399e1196932cd5ea72f84aa90224e7402
tree60383d002c2ca86a920a0f8df186c8e649a6495a
parent82e56767aa9334bb0c4cfe81964a576778b93d6e
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
git.c
git clone https://git.99rst.org/PROJECT