1. 11 8月, 2009 1 次提交
    • J
      am: allow individual e-mail files as input · 584c4356
      Junio C Hamano 提交于
      We traditionally allowed a mbox file or a directory name of a maildir (but
      never an individual file inside a maildir) to be given to "git am".  Even
      though an individual file in a maildir (or more generally, a piece of
      RFC2822 e-mail) is not a mbox file, it contains enough information to
      create a commit out of it, so there is no reason to reject one.  Running
      mailsplit on such a file feels stupid, but it does not hurt.
      
      This builds on top of a5a6755a (git-am foreign patch support: introduce
      patch_format, 2009-05-27) that introduced mailbox format detection.  The
      codepath to deal with a mbox requires it to begin with "From " line and
      also allows it to begin with "From: ", but a random piece of e-mail can
      and often do begin with any valid RFC2822 header lines.
      
      Instead of checking the first line, we extract all the lines up to the
      first empty line, and make sure they look like e-mail headers.
      
      A test is added to t4150 to demonstrate this feature.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      Signed-off-by: NBrandon Casey <drafnel@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      584c4356
  2. 08 8月, 2009 6 次提交
  3. 06 8月, 2009 4 次提交
  4. 05 8月, 2009 2 次提交
  5. 31 7月, 2009 1 次提交
  6. 29 7月, 2009 7 次提交
  7. 27 7月, 2009 4 次提交
  8. 26 7月, 2009 5 次提交
  9. 25 7月, 2009 10 次提交
    • E
      git svn: avoid escaping '/' when renaming/copying files · 884cce5b
      Eric Wong 提交于
      Timothy Schaeffer reported the following:
      > Git-svn has been giving me the following error for some time
      > when calling "git svn dcommit":
      >
      > RA layer request failed: PROPFIND request failed on
      > '/svn/stf/branches/dev/sw%2Fdpemu%2Finclude%2FNetCnxn.h': PROPFIND of
      > '/svn/stf/branches/dev/sw%2Fdpemu%2Finclude%2FNetCnxn.h': 302 Found
      > (https://oursvnrepo.net) at /usr/local/libexec/git-core/git-svn line 508
      >
      > This only occurred when git detected a rename or copy.
      >
      > Following the lead into git-svn.perl,
      > and noticing that some of the '/'s in the path were hex-encoded
      > and some were not,
      > I changed the regex used to find chars
      > to hex-encode in the relative part of the path
      > to exclude '/'.
      > It works, so far.
      > I have included a patch.
      
      While this has previous not been a problem in my experience,
      newer versions of SVN may be stricter and this does not
      introduce regressions in t9115.
      Signed-off-by: NEric Wong <normalperson@yhbt.net>
      884cce5b
    • E
      t9142: stop httpd after the test · 5af9b77b
      Eric Wong 提交于
      Otherwise it would fail in subsequent runs if the same
      SVN_HTTPD_PORT was used.
      Signed-off-by: NEric Wong <normalperson@yhbt.net>
      5af9b77b
    • E
      git svn: the branch command no longer needs the full path · eaa14ff8
      Eric Wong 提交于
      This was introduced in 0b2af457
      ("Fix branch detection when repository root is inaccessible")
      but reintroduced in the previous commit.
      Signed-off-by: NEric Wong <normalperson@yhbt.net>
      eaa14ff8
    • E
      git svn: revert default behavior for --minimize-url · 6b48829d
      Eric Wong 提交于
      This reverts the --minimize-url behavior change that
      appeared recently in commit 0b2af457
      ("Fix branch detection when repository root is inaccessible").
      
      However, we now allow the option to be turned off by allowing
      "--no-minimize-url" so people with limited-access setups can
      still take advantage of the fix in
      0b2af457.
      
      Also document the behavior and default settings of minimize-url
      in the manpage for the first time.
      
      This introduces a temporary UI regression to allow t9141 to pass
      that will be reverted (fixed) in the next commit.
      Signed-off-by: NEric Wong <normalperson@yhbt.net>
      6b48829d
    • R
      git svn: add gc command · 2da9ee08
      Robert Allan Zeh 提交于
      Add a git svn gc command that gzips all unhandled.log files, and
      removes all index files under .git/svn.
      Signed-off-by: NRobert Allan Zeh <robert.a.zeh@gmail.com>
      Signed-off-by: NEric Wong <normalperson@yhbt.net>
      2da9ee08
    • J
      Merge branch 'maint' · 6517452d
      Junio C Hamano 提交于
      * maint:
        t8005: Nobody writes Russian in shift_jis
      
      Conflicts:
      	t/t8005-blame-i18n.sh
      6517452d
    • J
      t8005: Nobody writes Russian in shift_jis · 54bc13ce
      Junio C Hamano 提交于
      The second and third tests of this script expected that Russian strings
      are converted between ISO-8859-5 and Shift_JIS in the "blame --porcelain"
      format output correctly.
      
      Sure, many platforms may convert between such a combination, but that is
      only because one of the base character set of Shift_JIS, JIS X 0208,
      defines codepoints for Russian characters (among others); I do not think
      anybody uses Shift_JIS when seriously writing Russian, and it is perfectly
      understandable if iconv() libraries on some platforms fail converting
      between this combination, as it does not matter in reality.
      
      This patch changes the test to verify Japanese strings are converted
      correctly between EUC-JP and Shift_JIS in the same procedure.  The point
      of the test is not about verifying the platform's iconv() library, but to
      see if "git blame" makes correct iconv() library calls when it should.
      
      We could instead use ISO-8859-5 and KOI8-R as the combination, because
      they are both meant to represent Russian, in order to make this test
      meaningful on more platforms, but we already use Shift_JIS vs EUC-JP
      combinations to test other programs in our test suite, so this combination
      is safer from the point of view of the portability.  Besides, I do not
      read nor write Russian; sorry ;-)
      
      This change allows tests to pass on my (friend's) Solaris 5.11 box.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      54bc13ce
    • J
      Merge branch 'maint' · 8f5e3ca7
      Junio C Hamano 提交于
      * maint:
        Fix severe breakage in "git-apply --whitespace=fix"
      8f5e3ca7
    • J
      Fix severe breakage in "git-apply --whitespace=fix" · 422a82f2
      Junio C Hamano 提交于
      735c6744 (Trailing whitespace and no newline fix, 2009-07-22) completely
      broke --whitespace=fix, causing it to lose all the empty lines in a patch.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      422a82f2
    • J
      Update release notes for 1.6.4 · b3601a63
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      b3601a63