1. 01 5月, 2008 3 次提交
    • S
      git-svn: Same default as cvsimport when using --use-log-author · abfa533d
      Stephen R. van den Berg 提交于
      When using git-cvsimport, the author is inferred from the cvs commit,
      e.g. cvs commit logname is foobaruser, then the author field in git
      results in:
      
      Author: foobaruser <foobaruser>
      
      Which is not perfect, but perfectly acceptable given the circumstances.
      
      The default git-svn import however, results in:
      
      Author: foobaruser <foobaruser@acf43c95-373e-0410-b603-e72c3f656dc1>
      
      When using mixes of imports, from CVS and SVN into the same git
      repository, you'd like to harmonise the imports to the format cvsimport
      uses.
      git-svn supports an experimental option --use-log-author which currently
      results in the same logentry as without that option when no From: or
      Signed-off-by: is found in the logentry ($email currently ends up empty,
      and hence is generated again).
      
      This patches harmonises the result with cvsimport, and makes
      git-svn --use-log-author produce:
      
      Author: foobaruser <foobaruser>
      Signed-off-by: NStephen R. van den Berg <srb@cuci.nl>
      Acked-by: NEric Wong <normalperson@yhbt.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      abfa533d
    • J
      Merge branch 'maint' · e4b9c36c
      Junio C Hamano 提交于
      * maint:
        fetch-pack: brown paper bag fix
      e4b9c36c
    • J
      fetch-pack: brown paper bag fix · 2d8bed96
      Junio C Hamano 提交于
      When I applied Linus's patch from the list by hand somehow I ended
      up reversing the logic by mistake.  This fixes it.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      2d8bed96
  2. 30 4月, 2008 12 次提交
  3. 29 4月, 2008 3 次提交
  4. 28 4月, 2008 9 次提交
  5. 27 4月, 2008 1 次提交
  6. 26 4月, 2008 1 次提交
  7. 25 4月, 2008 5 次提交
    • J
      Merge branch 'maint' · 049a226f
      Junio C Hamano 提交于
      * maint:
        remote: create fetch config lines with '+'
        push: allow unqualified dest refspecs to DWIM
        doc/git-gc: add a note about what is collected
        t5516: remove ambiguity test (1)
        Linked glossary from cvs-migration page
        write-tree: properly detect failure to write tree objects
      049a226f
    • J
      remote: create fetch config lines with '+' · 1ce89cc4
      Jeff King 提交于
      Since git-remote always uses remote tracking branches, it
      should be safe to always force updates of those branches.
      I.e., we should generate
      
        fetch = +refs/heads/*:refs/remotes/$remote/*
      
      instead of
      
        fetch = refs/heads/*:refs/remotes/$remote/*
      
      This was the behavior of the perl version, which seems to
      have been lost in the C rewrite.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      1ce89cc4
    • J
      push: allow unqualified dest refspecs to DWIM · f8aae120
      Jeff King 提交于
      Previously, a push like:
      
        git push remote src:dst
      
      would go through the following steps:
      
        1. check for an unambiguous 'dst' on the remote; if it
           exists, then push to that ref
        2. otherwise, check if 'dst' begins with 'refs/'; if it
           does, create a new ref
        3. otherwise, complain because we don't know where in the
           refs hierarchy to put 'dst'
      
      However, in some cases, we can guess about the ref type of
      'dst' based on the ref type of 'src'. Specifically, before
      complaining we now check:
      
        2.5. if 'src' resolves to a ref starting with refs/heads
             or refs/tags, then prepend that to 'dst'
      
      So now this creates a new branch on the remote, whereas it
      previously failed with an error message:
      
        git push master:newbranch
      
      Note that, by design, we limit this DWIM behavior only to
      source refs which resolve exactly (including symrefs which
      resolve to existing refs). We still complain on a partial
      destination refspec if the source is a raw sha1, or a ref
      expression such as 'master~10'.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      f8aae120
    • J
      Merge branch 'maint-1.5.4' into maint · 31c6390d
      Junio C Hamano 提交于
      * maint-1.5.4:
        t5516: remove ambiguity test (1)
        Linked glossary from cvs-migration page
        write-tree: properly detect failure to write tree objects
      31c6390d
    • J
      doc/git-gc: add a note about what is collected · 3ffb58be
      Jeff King 提交于
      It seems to be a FAQ that people try running git-gc, and
      then get puzzled about why the size of their .git directory
      didn't change. This note mentions the reasons why things
      might unexpectedly get kept.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      3ffb58be
  8. 24 4月, 2008 3 次提交
  9. 23 4月, 2008 3 次提交
    • J
      Merge branch 'maint' · 57cf5ca3
      Junio C Hamano 提交于
      * maint:
        Amend git-push refspec documentation
        git-gc --prune is deprecated
        svn-git: Use binmode for reading/writing binary rev maps
        diff options documentation: refer to --diff-filter in --name-status
        Don't force imap.host to be set when imap.tunnel is set
        git-clone.txt: Adjust note to --shared for new pruning behavior of git-gc
        git-svn bug with blank commits and author file
        archive.c: format_subst - fixed bogus argument to memchr
        copy.c: copy_fd - correctly report write errors
        gitattributes: Fix subdirectory attributes specified from root directory
      57cf5ca3
    • J
      Merge branch 'maint-1.5.4' into maint · d6958a1a
      Junio C Hamano 提交于
      * maint-1.5.4:
        svn-git: Use binmode for reading/writing binary rev maps
        diff options documentation: refer to --diff-filter in --name-status
        git-svn bug with blank commits and author file
        archive.c: format_subst - fixed bogus argument to memchr
        copy.c: copy_fd - correctly report write errors
        gitattributes: Fix subdirectory attributes specified from root directory
      d6958a1a
    • S
      Amend git-push refspec documentation · 491b1b11
      Sam Vilain 提交于
      These paragraphs are a little confusing.  Also, make it clearer when
      you have to specify the full name for <dst>
      Signed-off-by: NSam Vilain <sam.vilain@catalyst.net.nz>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      491b1b11