1. 01 4月, 2008 1 次提交
  2. 31 3月, 2008 6 次提交
    • B
      mktag.c: improve verification of tagger field and tests · e0aaf781
      Brandon Casey 提交于
      Since nearly its birth, git's tags have included a "tagger" field which
      describes the name of tagger, email of tagger, and date and time of tagging.
      But, this field was only loosely tested by git-mktag. Provide some thorough
      testing for this field and also ensure that the tag header is separated
      from the tag body by an empty line to reduce the convenience of creating
      a flawed tag.
      Signed-off-by: NBrandon Casey <casey@nrlssc.navy.mil>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      e0aaf781
    • J
      diff-files: careful when inspecting work tree items · f58dbf23
      Junio C Hamano 提交于
      This fixes the same breakage in diff-files.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      f58dbf23
    • J
      diff-index: careful when inspecting work tree items · 948dd346
      Junio C Hamano 提交于
      Earlier, if you changed a staged path into a directory in the work tree,
      we happily ran lstat(2) on it and found that it exists, and declared that
      the user changed it to a gitlink.
      
      This is wrong for two reasons:
      
       (1) It may be a directory, but it may not be a submodule, and in the
           latter case, the change we need to report is "the blob at the path
           has disappeared".  We need to check with resolve_gitlink_ref() to be
           consistent with what "git add" and "git update-index --add" does.
      
       (2) lstat(2) may have succeeded only because a leading component of the
           path was turned into a symbolic link that points at something that
           exists in the work tree.  In such a case, the path itself does not
           exist anymore, as far as the index is concerned.
      
      This fixes these breakages in diff-index that the previous patch has
      exposed.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      948dd346
    • J
      Add corner case tests for diff-index and diff-files · 6301f303
      Junio C Hamano 提交于
      diff-index and diff-files can get confused in corner cases when an indexed
      blob turns into something else in the work tree.  This patch adds tests to
      expose such breakages.
      
      The test is classified under t2XXX series instead of t4XXX series, because
      the ultimate objective is to fix "add -u" (and "commit -a" that shares the
      same issue).
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      6301f303
    • B
      Silence cpio's "N blocks" output when cloning locally · c20711d2
      Bryan Donlan 提交于
      Pass --quiet to cpio in git-clone to hide the (confusing) "0 blocks" message.
      For compatibility with operating systems which might not support GNUisms,
      the presence of --quiet is probed for by grepping cpio's --help output.
      Signed-off-by: NBryan Donlan <bdonlan@fushizen.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      c20711d2
    • E
      git-svn: remove redundant slashes from show-ignore · 67dac28b
      Eric Wong 提交于
      Jonathan Scott Duff wrote:
      
      > Recently I tried "git svn showignore" on my parrot repository and it
      > failed.  I tracked it down to the prop_walk() sub.  When it recurses,
      > $path has an extra / on the beginning (i.e., when it recurses, it
      > tries to get the props for "//apps" instead of "/apps").   I *think*
      > this is because $path is used in the recursive call rather than $p
      > (which seems to contain a properly transformed $path).  Anyway, I've
      > attached a patch that works for me and I think is generally the right
      > thing.
      
      Patch-submitted-by: Jonathan Scott Duff
      Signed-off-by: NEric Wong <normalperson@yhbt.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      67dac28b
  3. 28 3月, 2008 13 次提交
  4. 27 3月, 2008 4 次提交
  5. 26 3月, 2008 6 次提交
  6. 25 3月, 2008 3 次提交
  7. 24 3月, 2008 3 次提交
  8. 23 3月, 2008 4 次提交
    • J
      GIT 1.5.5-rc1 · bc610008
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      bc610008
    • J
      gc --auto: raise default auto pack limit from 20 to 50 · 97063974
      Junio C Hamano 提交于
      Recent discussion on the list, with the improvement f7c22cc6 (always start
      looking up objects in the last used pack first, 2007-05-30) brought in,
      reached the concensus that the current default 20 is too low.
      
      Reference: http://thread.gmane.org/gmane.comp.version-control.git/77586Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      97063974
    • J
      Merge branch 'git-p4' of git://repo.or.cz/git/git-p4 · dc96bdb9
      Junio C Hamano 提交于
      * 'git-p4' of git://repo.or.cz/git/git-p4:
        git-p4: Use P4EDITOR environment variable when set
        git-p4: Unset P4DIFF environment variable when using 'p4 -du diff'
        git-p4: Optimize the fetching of data from perforce.
      dc96bdb9
    • J
      remote.c: Fix overtight refspec validation · 46220ca1
      Junio C Hamano 提交于
      We tightened the refspec validation code in an earlier commit ef00d150
      (Tighten refspec processing, 2008-03-17) per my suggestion, but the
      suggestion was misguided to begin with and it broke this usage:
      
          $ git push origin HEAD~12:master
      
      The syntax of push refspecs and fetch refspecs are similar in that they
      are both colon separated LHS and RHS (possibly prefixed with a + to
      force), but the similarity ends there.  For example, LHS in a push refspec
      can be anything that evaluates to a valid object name at runtime (except
      when colon and RHS is missing, or it is a glob), while it must be a
      valid-looking refname in a fetch refspec.  To validate them correctly, the
      caller needs to be able to say which kind of refspecs they are.  It is
      unreasonable to keep a single interface that cannot tell which kind it is
      dealing with, and ask it to behave sensibly.
      
      This commit separates the parsing of the two into different functions, and
      clarifies the code to implement the parsing proper (i.e. splitting into
      two parts, making sure both sides are wildcard or neither side is).
      
      This happens to also allow pushing a commit named with the esoteric "look
      for that string" syntax:
      
          $ git push ../test.git ':/remote.c: Fix overtight refspec:master'
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      46220ca1