Skip to content
  • Jeff King's avatar
    git: avoid magic number with skip_prefix · 6d877803
    Jeff King authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    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: default avatarJeff King <peff@peff.net>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    6d877803