1. 02 8月, 2008 14 次提交
  2. 01 8月, 2008 3 次提交
    • P
      Allow "non-option" revision options in parse_option-enabled commands · 0fe8c138
      Pierre Habouzit 提交于
      Commands which use parse_options() but also call setup_revisions()
      must do their parsing in a two step process:
      
        1. first, they parse all options. Anything unknown goes to
           parse_revision_opt() (which calls handle_revision_opt), which
           may claim the option or say "I don't recognize this"
      
        2. the non-option remainder goes to setup_revisions() to
           actually get turned into revisions
      
      Some revision options are "non-options" in that they must be
      parsed in order with their revision counterparts in
      setup_revisions().  For example, "--all" functions as a
      pseudo-option expanding to all refs, and "--no-walk" affects refs
      after it on the command line, but not before. The revision option
      parser in step 1 recognizes such options and sets them aside for
      later parsing by setup_revisions().
      
      However, the return value used from handle_revision_opt indicated
      "I didn't recognize this", which was wrong. It did, and it took
      appropriate action (even though that action was just deferring it
      for later parsing). Thus it should return "yes, I recognized
      this."
      
      Previously, these pseudo-options generated an error when used with
      parse_options parsers (currently just blame and shortlog). With
      this patch, they should work fine, enabling things like "git
      shortlog --all".
      Signed-off-by: NJeff King <peff@peff.net>
      Acked-By: NPierre Habouzit <madcoder@debian.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      0fe8c138
    • J
      Teach --find-copies-harder to "git blame" · b3123f98
      Junio C Hamano 提交于
      It's equivalent to "-C -C" with the diff family.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      b3123f98
    • J
      Compact commit template message · fdc7c811
      Jeff King 提交于
      We recently let the user know explicitly that an empty
      commit message will abort the commit. However, this adds yet
      another line to the template; let's rephrase and re-wrap so
      that this fits back on two lines.
      
      This patch also makes the "fatal: empty commit message?"
      warning a bit less scary, since this is now a "feature"
      instead of an error. However, we retain the non-zero exit
      status to indicate to callers that nothing was committed.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      fdc7c811
  3. 31 7月, 2008 4 次提交
  4. 30 7月, 2008 14 次提交
  5. 29 7月, 2008 5 次提交