1. 12 2月, 2010 1 次提交
  2. 26 1月, 2010 1 次提交
  3. 04 12月, 2009 1 次提交
  4. 28 11月, 2009 1 次提交
    • J
      Remove dead code from "git am" · c970a6fd
      Junio C Hamano 提交于
      Ever since the initial implementation, "git am" had kept a dead code that
      never triggered due to a typo in the variable name.  Worse yet, the code,
      if it weren't for the typo, would have attempted to add "[PATCH] " at the
      beginning of the Subject: header when "git am" is run with its "-k"
      option.  However, because "git am -k" tells mailinfo to keep such prefix
      when parsing the input, the "[PATCH] " added by this dead code would have
      really been unnecessary duplicate.
      
      Embarrassing is that we kept _maintaining_ the codepath without anybody
      noticing for four years.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      c970a6fd
  5. 24 11月, 2009 1 次提交
    • J
      Protect scripted Porcelains from GREP_OPTIONS insanity · e1622bfc
      Junio C Hamano 提交于
      If the user has exported the GREP_OPTIONS environment variable, the output
      from "grep" and "egrep" in scripted Porcelains may be different from what
      they expect.  For example, we may want to count number of matching lines,
      by "grep" piped to "wc -l", and GREP_OPTIONS=-C3 will break such use.
      
      The approach taken by this change to address this issue is to protect only
      our own use of grep/egrep.  Because we do not unset it at the beginning of
      our scripts, hook scripts run from the scripted Porcelains are exposed to
      the same insanity this environment variable causes when grep/egrep is used
      to implement logic (e.g. "grep | wc -l"), and it is entirely up to the
      hook scripts to protect themselves.
      
      On the other hand, applypatch-msg hook may want to show offending words in
      the proposed commit log message using grep to the end user, and the user
      might want to set GREP_OPTIONS=--color to paint the match more visibly.
      The approach to protect only our own use without unsetting the environment
      variable globally will allow this use case.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      e1622bfc
  6. 21 11月, 2009 1 次提交
  7. 14 11月, 2009 1 次提交
  8. 26 9月, 2009 2 次提交
  9. 27 8月, 2009 1 次提交
  10. 11 8月, 2009 2 次提交
  11. 07 8月, 2009 2 次提交
  12. 06 8月, 2009 2 次提交
  13. 19 6月, 2009 2 次提交
  14. 14 6月, 2009 1 次提交
  15. 29 5月, 2009 3 次提交
  16. 10 5月, 2009 1 次提交
  17. 19 4月, 2009 1 次提交
  18. 13 4月, 2009 1 次提交
  19. 27 2月, 2009 2 次提交
  20. 29 1月, 2009 1 次提交
    • J
      git-am: minor cleanups · 98ef23b3
      Jay Soffian 提交于
      Update usage statement to remove a no-longer supported option, and to hide two
      options (one a no-op, one internal) unless --help-all is used.
      
      Use "test -t 0" instead of "tty -s" to detect when stdin is a terminal. (test
      -t 0 is used elsewhere in git-am and in other git shell scripts, tty -s is
      not, and appears to be deprecated by POSIX)
      
      Use "test ..." instead of "[ ... ]" and "die <msg>" instead of "echo <msg>
      >&2; exit 1" to be consistent with rest of script.
      Signed-off-by: NJay Soffian <jaysoffian@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      98ef23b3
  21. 26 1月, 2009 2 次提交
  22. 24 1月, 2009 1 次提交
  23. 19 1月, 2009 1 次提交
  24. 18 1月, 2009 1 次提交
  25. 15 1月, 2009 1 次提交
  26. 12 1月, 2009 1 次提交
    • J
      git-am: add --directory=<dir> option · b47dfe9e
      Junio C Hamano 提交于
      Thanks to a2003379 (git-am: propagate -C<n>, -p<n> options as well,
      2008-12-04) and commits around it, "git am" is equipped to correctly
      propagate the command line flags such as -C/-p/-whitespace across a patch
      failure and restart.
      
      It is trivial to support --directory option now, resurrecting previous
      attempts by Kevin and Simon.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      b47dfe9e
  27. 06 12月, 2008 1 次提交
  28. 05 12月, 2008 3 次提交
  29. 16 8月, 2008 1 次提交