1. 11 11月, 2009 19 次提交
  2. 10 11月, 2009 6 次提交
    • J
      Show usage string for 'git show-ref -h' · e62b3935
      Jonathan Nieder 提交于
      This only changes the behavior of "git show-ref -h" without any
      other options and arguments.
      
      "show-ref -h" currently is short for "show-ref --head", which
      shows all the refs/* and HEAD, as opposed to "show-ref" that
      shows all the refs/* and not HEAD.
      
      Does anybody use "show-ref -h"?  It was in Linus's original, most
      likely only because "it might be handy", not because "the command
      should not show the HEAD by default for such and such reasons".
      So I think it is okay if "show-ref -h" (but not "show-ref
      --head") gives help and exits.
      
      If a current script uses "git show-ref -h" without any other
      arguments, it would have to be adapted by changing "-h" to
      "--head".
      Signed-off-by: NJonathan Nieder <jrnieder@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      e62b3935
    • J
      Show usage string for 'git merge-ours -h' · 20c7e3d5
      Jonathan Nieder 提交于
      This change is strictly about 'git merge-ours -h' without
      any other options and arguments.
      
      This change cannot break compatibility since merge drivers are
      always passed '--', among other arguments.
      
      Any usage string for this command is a lie, since it ignored its
      arguments until now.  Still, it makes sense to let the user know
      the expected usage when asked.
      Signed-off-by: NJonathan Nieder <jrnieder@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      20c7e3d5
    • J
      Show usage string for 'git commit-tree -h' · 6e9daeff
      Jonathan Nieder 提交于
      Treat an "-h" option as a request for help, rather than a "Not a
      valid object name" error.
      
      "commit-tree -h" could be asking to create a new commit from a
      treeish named "-h".  Strictly speaking, such a pathological ref
      name is possible, but the user would have to had said something
      like "tags/-h" to name such a pathological already.  commit-tree
      is usually used in scripts with raw object ids, anyway.
      
      For consistency, the "-h" option uses its new meaning even if
      followed by other arguments.
      Signed-off-by: NJonathan Nieder <jrnieder@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      6e9daeff
    • J
      Show usage string for 'git cherry -h' · fef34270
      Jonathan Nieder 提交于
      Treat an "-h" option as a request for help, rather than an
      "Unknown commit -h" error.
      
      "cherry -h" could be asking to compare histories that leads to
      our HEAD and a commit that can be named as "-h".  Strictly
      speaking, that may be a valid refname, but the user would have to
      say something like "tags/-h" to name such a pathological ref
      already, so it is not such a big deal.
      
      The "-h" option keeps its meaning even if preceded by other
      options or followed by other arguments.  This keeps the
      command-line syntax closer to what parse_options would give and
      supports shell aliases like 'alias cherry="git cherry -v"' a
      little better.
      Signed-off-by: NJonathan Nieder <jrnieder@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      fef34270
    • J
      Show usage string for 'git grep -h' · 9c855c31
      Jonathan Nieder 提交于
      Clarification: the following description only talks about "git
      grep -h" without any other options and arguments.
      
      Such a change cannot be breaking backward compatibility.  "grep
      -h" cannot be asking for suppressing filenames, as there is no
      match pattern specified.
      Signed-off-by: NJonathan Nieder <jrnieder@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      9c855c31
    • J
      Retire fetch--tool helper to contrib/examples · fe9a2152
      Jonathan Nieder 提交于
      When git-fetch was builtin-ized, the previous script was moved to
      contrib/examples.  Now, it is the sole remaining user for
      'git fetch--tool'.
      
      The fetch--tool code is still worth keeping around so people can
      try out the old git-fetch.sh, for example when investigating
      regressions from the builtinifaction.
      Signed-off-by: NJonathan Nieder <jrnieder@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      fe9a2152
  3. 09 11月, 2009 2 次提交
  4. 07 11月, 2009 2 次提交
    • J
      Merge branch 'jc/commit-s-subject-is-not-a-footer' · 6e31f3db
      Junio C Hamano 提交于
      * jc/commit-s-subject-is-not-a-footer:
        builtin-commit.c: fix logic to omit empty line before existing footers
      6e31f3db
    • J
      builtin-commit.c: fix logic to omit empty line before existing footers · e5138436
      Junio C Hamano 提交于
      "commit -s" used to add an empty line before adding S-o-b line only when
      the last line of the existing log message is not another S-o-b line, but
      c1e01b0c (commit: More generous accepting of RFC-2822 footer lines.,
      2009-10-28) introduced logic to omit this empty line when the message ends
      with a run of "footer" lines, to cover S-o-b's friends, e.g. Acked-by.
      
      However, the logic was overzealous and missed one corner case.  A message
      that consists of a single line that begins with Token + colon, it can be
      mistaken as a S-o-b's friend.  We do want an empty line in such a case.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      e5138436
  5. 06 11月, 2009 1 次提交
  6. 05 11月, 2009 2 次提交
  7. 04 11月, 2009 2 次提交
  8. 03 11月, 2009 2 次提交
  9. 02 11月, 2009 3 次提交
  10. 01 11月, 2009 1 次提交