Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Aug 6, 2010
  1. @moy @gitster

    diff: parse separate options like -S foo

    moy authored gitster committed
    Change the option parsing logic in revision.c to accept separate forms
    like `-S foo' in addition to `-Sfoo'. The rest of git already accepted
    this form, but revision.c still used its own option parsing.
    
    Short options affected are -S<string>, -l<num> and -O<orderfile>, for
    which an empty string wouldn't make sense, hence -<option> <arg> isn't
    ambiguous.
    
    This patch does not handle --stat-name-width and --stat-width, which are
    special-cases where diff_long_opt do not apply. They are handled in a
    separate patch to ease review.
    
    Original patch by Matthieu Moy, plus refactoring by Jonathan Nieder.
    
    Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Something went wrong with that request. Please try again.