1. 17 4月, 2008 1 次提交
  2. 16 4月, 2008 1 次提交
    • L
      git-am: cope better with an empty Subject: line · 2e6e3e82
      Linus Torvalds 提交于
      When the Subject: line is empty for whatever reason, git-am was fooled by
      it and left an empty line at the beginning of the resulting commit log
      message.
      
      This moves the logic around so that we do not keep $SUBJECT in a separate
      variable.  Instead, $dotest/msg-clean, which used to be the log message
      body extracted from the message and then trailing whitespaces cleansed
      out, now contains the subject line followed by a blank line at the
      beginning for normal messages, and we use the first line from the file as
      the summary line throughout the program.
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      2e6e3e82
  3. 13 3月, 2008 1 次提交
  4. 06 3月, 2008 3 次提交
    • J
      am: --rebasing · 3041c324
      Junio C Hamano 提交于
      The new option --rebasing is used internally for rebase to tell am that
      it is being used for its purpose.  This would leave .dotest/rebasing to
      help "completion" scripts tell if the ongoing operation is am or rebase.
      
      Also the option at the same time stands for --binary, -3 and -k which
      are always given when rebase drives am as its backend.
      
      Using the information "am" leaves, git-completion.bash tells ongoing
      rebase and am apart.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      3041c324
    • J
      am: remove support for -d .dotest · e72c7406
      Junio C Hamano 提交于
      It has been supported for a long time, but I do not think this feature has
      been in use in the real world at all.  We would eventually move this out
      of the toplevel of the work tree and to somewhere under $GIT_DIR, so let's
      remove the command line option to specify the location now.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      e72c7406
    • J
      am: read from the right mailbox when started from a subdirectory · bb034f83
      Junio C Hamano 提交于
      An earlier commit c1491841 (allow git-am to run in a subdirectory) taught
      git-am to start from a subdirectory by going up to the root of the work
      tree byitself, but it did not adjust the path to read the mbox from when
      it did so.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      bb034f83
  5. 01 3月, 2008 1 次提交
  6. 04 2月, 2008 1 次提交
  7. 05 1月, 2008 1 次提交
  8. 06 12月, 2007 2 次提交
  9. 03 12月, 2007 1 次提交
  10. 29 11月, 2007 1 次提交
  11. 09 11月, 2007 1 次提交
  12. 07 11月, 2007 1 次提交
  13. 06 11月, 2007 1 次提交
  14. 01 10月, 2007 1 次提交
  15. 30 9月, 2007 1 次提交
  16. 27 9月, 2007 1 次提交
  17. 24 9月, 2007 1 次提交
    • D
      Supplant the "while case ... break ;; esac" idiom · 822f7c73
      David Kastrup 提交于
      A lot of shell scripts contained stuff starting with
      
      	while case "$#" in 0) break ;; esac
      
      and similar.  I consider breaking out of the condition instead of the
      body od the loop ugly, and the implied "true" value of the
      non-matching case is not really obvious to humans at first glance.  It
      happens not to be obvious to some BSD shells, either, but that's
      because they are not POSIX-compliant.  In most cases, this has been
      replaced by a straight condition using "test".  "case" has the
      advantage of being faster than "test" on vintage shells where "test"
      is not a builtin.  Since none of them is likely to run the git
      scripts, anyway, the added readability should be worth the change.
      
      A few loops have had their termination condition expressed
      differently.
      Signed-off-by: NDavid Kastrup <dak@gnu.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      822f7c73
  18. 19 9月, 2007 1 次提交
  19. 06 9月, 2007 1 次提交
  20. 26 8月, 2007 1 次提交
  21. 07 8月, 2007 1 次提交
  22. 25 7月, 2007 1 次提交
  23. 20 7月, 2007 1 次提交
  24. 07 7月, 2007 1 次提交
  25. 03 7月, 2007 1 次提交
  26. 26 5月, 2007 2 次提交
  27. 24 4月, 2007 1 次提交
  28. 25 3月, 2007 1 次提交
  29. 13 3月, 2007 1 次提交
    • D
      builtin-mailinfo.c infrastrcture changes · 87ab7992
      Don Zickus 提交于
      I am working on a project that required parsing through regular
      mboxes that didn't necessarily have patches embedded in them.  I
      started by creating my own modified copy of git-am and working
      from there.  Very quickly, I noticed git-mailinfo wasn't able to
      handle a big chunk of my email.
      
      After hacking up numerous solutions and running into more
      limitations, I decided it was just easier to rewrite a big chunk
      of it.  The following patch has a bunch of fixes and features
      that I needed in order for me do what I wanted.
      
      Note: I'm didn't follow any email rfc papers but I don't think
      any of the changes I did required much knowledge (besides the
      boundary stuff).
      
      List of major changes/fixes:
      - can't create empty patch files fix
      - empty patch files don't fail, this failure will come inside git-am
      - multipart boundaries are now handled
      - only output inbody headers if a patch exists otherwise assume those
      headers are part of the reply and instead output the original headers
      - decode and filter base64 patches correctly
      - various other accidental fixes
      
      I believe I didn't break any existing functionality or
      compatibility (other than what I describe above, which is really
      only the empty patch file).
      
      I tested this through various mailing list archives and
      everything seemed to parse correctly (a couple thousand emails).
      
      [jc: squashed in another patch from Don's five patch series to
       fix the test case, as this patch exposes the bug in the test.]
      Signed-off-by: NDon Zickus <dzickus@redhat.com>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      87ab7992
  30. 24 2月, 2007 1 次提交
    • J
      Reword git-am 3-way fallback failure message. · b1440cc8
      Junio C Hamano 提交于
      When the blobs recorded on the index lines in the patch as pre-image
      blobs are not found in the repository, "git-am" punted saying
      that the index line does not record anything useful.  This was not
      clear enough -- the index line does have something useful but the
      problem was that it was not useful in _that_ repository.
      
      Reword the message as Francis Moreau suggests.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      b1440cc8
  31. 12 2月, 2007 1 次提交
  32. 09 2月, 2007 1 次提交
  33. 11 1月, 2007 1 次提交
  34. 10 1月, 2007 2 次提交
  35. 09 1月, 2007 1 次提交
    • J
      --utf8 is now default for 'git-am' · d84029b6
      Junio C Hamano 提交于
      Since we are talking about allowing potentially incompatible UI
      changes in v1.5.0 iff the change improves the general situation,
      I would say why not.
      
      There is --no-utf8 flag to avoid re-coding from botching the log
      message just in case, but we may not even need it.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      d84029b6