Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Nov 10, 2009
  1. @jrn @gitster

    Introduce usagef() that takes a printf-style format

    jrn authored gitster committed
    Some new callers would want to use printf-like formatting, when issuing
    their usage messages.  An option is to change usage() itself also be like
    printf(), which would make it similar to die() and warn().
    
    But usage() is typically fixed, as opposed to die() and warn() that gives
    diagnostics depending on the situation.  Indeed, the majority of strings
    given by existing callsites to usage() are fixed strings.  If we were to
    make usage() take printf-style format, they all need to be changed to have
    "%s" as their first argument.
    
    So instead, introduce usagef() so that limited number of callers can use
    it.
    
    Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Something went wrong with that request. Please try again.