1. 19 4月, 2008 1 次提交
    • J
      am: POSIX portability fix · 29df2385
      Junio C Hamano 提交于
      POSIX allows echo without flag to interpret specials such as \n, and we
      tried to make things portable by using printf instead where it matters.
      Recently added code to "git am" had unprotected "echo", which was caught
      by t4014 and Rémi Vanicat.
      
      This should fix it.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      29df2385
  2. 17 4月, 2008 2 次提交
    • J
      git-am: minor cleanup · 11dc4e70
      Junio C Hamano 提交于
      This moves the assignment to FIRSTLINE down so that we do not have
      to have multiple copies.
      
      Suggested by Linus.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      11dc4e70
    • J
      rebase: do not munge commit log message · 5e835cac
      Junio C Hamano 提交于
      Traditionally git-rebase was implemented in terms of "format-patch" piped
      to "am -3", to strike balance between speed (because it avoids a rather
      expensive read-tree/merge-recursive machinery most of the time) and
      flexibility (the magic "-3" allows it to fall back to 3-way merge as
      necessary).  However, this combination has one flaw when dealing with a
      nonstandard commit log message format that has more than one lines in the
      first paragraph.
      
      This teaches "git am --rebasing" to take advantage of the fact that the
      mbox message "git rebase" prepares for it records the original commit
      object name, to get the log message from the original commit object
      instead.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      5e835cac
  3. 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
  4. 13 3月, 2008 1 次提交
  5. 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
  6. 01 3月, 2008 1 次提交
  7. 04 2月, 2008 1 次提交
  8. 05 1月, 2008 1 次提交
  9. 06 12月, 2007 2 次提交
  10. 03 12月, 2007 1 次提交
  11. 29 11月, 2007 1 次提交
  12. 09 11月, 2007 1 次提交
  13. 07 11月, 2007 1 次提交
  14. 06 11月, 2007 1 次提交
  15. 01 10月, 2007 1 次提交
  16. 30 9月, 2007 1 次提交
  17. 27 9月, 2007 1 次提交
  18. 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
  19. 19 9月, 2007 1 次提交
  20. 06 9月, 2007 1 次提交
  21. 26 8月, 2007 1 次提交
  22. 07 8月, 2007 1 次提交
  23. 25 7月, 2007 1 次提交
  24. 20 7月, 2007 1 次提交
  25. 07 7月, 2007 1 次提交
  26. 03 7月, 2007 1 次提交
  27. 26 5月, 2007 2 次提交
  28. 24 4月, 2007 1 次提交
  29. 25 3月, 2007 1 次提交
  30. 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
  31. 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
  32. 12 2月, 2007 1 次提交
  33. 09 2月, 2007 1 次提交
  34. 11 1月, 2007 1 次提交
  35. 10 1月, 2007 1 次提交