1. 16 8月, 2010 1 次提交
  2. 13 8月, 2010 2 次提交
  3. 12 8月, 2010 3 次提交
    • R
      fast-import: export correctly marks larger than 2^20-1 · 7e7db5e4
      Raja R Harinath 提交于
      dump_marks_helper() has a bug when dumping marks larger than 2^20-1,
      i.e., when the sparse array has more than two levels.  The bug was
      that the 'base' counter was being shifted by 20 bits at level 3, and
      then again by 10 bits at level 2, rather than a total shift of 20 bits
      in this argument to the recursive call:
      
        (base + k) << m->shift
      
      There are two ways to fix this correctly, the elegant:
      
        (base + k) << 10
      
      and the one I chose due to edit distance:
      
        base + (k << m->shift)
      Signed-off-by: NRaja R Harinath <harinath@hurrynot.org>
      Acked-by: NShawn O. Pearce <spearce@spearce.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      7e7db5e4
    • Æ
      t/lib-git-svn.sh: use $PERL_PATH for perl, not perl from $PATH · 55369342
      Ævar Arnfjörð Bjarmason 提交于
      Change the git-svn tests to use $PERL_PATH, not the "perl" in $PATH.
      
      Using perl in $PATH was added by Sam Vilain in v1.6.6-rc0~95^2~3,
      Philippe Bruhat introduced $PERL_PATH to the test suite in
      v1.6.6-rc0~9^2, but the lib-git-svn.sh tests weren't updated to use
      the new convention.
      
      This resulted in the git-svn tests always being skipped on my
      system. My /usr/bin/perl has access to SVN::Core and SVN::Repos, but
      the perl in my $PATH does not.
      Signed-off-by: NÆvar Arnfjörð Bjarmason <avarab@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      55369342
    • J
      diff: strip extra "/" when stripping prefix · d8faea9d
      Jakub Narebski 提交于
      There are two ways a user might want to use "diff --relative":
      
        1. For a file in a directory, like "subdir/file", the user
           can use "--relative=subdir/" to strip the directory.
      
        2. To strip part of a filename, like "foo-10", they can
           use "--relative=foo-".
      
      We currently handle both of those situations. However, if the user passes
      "--relative=subdir" (without the trailing slash), we produce inconsistent
      results. For the unified diff format, we collapse the double-slash of
      "a//file" correctly into "a/file". But for other formats (raw, stat,
      name-status), we end up with "/file".
      
      We can do what the user means here and strip the extra "/" (and only a
      slash).  We are not hurting any existing users of (2) above with this
      behavior change because the existing output for this case was nonsensical.
      
      Patch by Jakub, tests and commit message by Jeff King.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      d8faea9d
  4. 10 8月, 2010 1 次提交
    • T
      t7003: fix subdirectory-filter test · 3c8710ae
      Thomas Rast 提交于
      The test would not fail if the filtering failed to do anything, since
      in
      
        test -z "$(git diff HEAD directorymoved:newsubdir)"'
      
      'directorymoved:newsubdir' is not valid, so git-diff fails without
      printing anything on stdout.  But then the exit status of git-diff is
      lost, whereas test -z "" succeeds.
      
      Use 'git diff --exit-code' instead, which does the right thing and has
      the added bonus of showing the differences if there are any.
      Signed-off-by: NThomas Rast <trast@student.ethz.ch>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      3c8710ae
  5. 07 8月, 2010 1 次提交
  6. 03 8月, 2010 2 次提交
  7. 29 7月, 2010 1 次提交
  8. 28 7月, 2010 1 次提交
  9. 26 7月, 2010 2 次提交
  10. 22 7月, 2010 3 次提交
  11. 21 7月, 2010 3 次提交
    • B
      t/{t5541,lib-httpd}: replace problematic '!()' notation with test_must_fail · 77b5be2a
      Brandon Casey 提交于
      The '!()' notation is interpreted as a pattern-list on Ksh.  The Ksh man
      page describe it as follows:
      
         !(pattern-list)
            Matches anything except one of the given patterns.
      
      Ksh performs a file glob using the pattern-list and then tries to execute
      the first file in the list.  If a space is added between the '!' and the
      open parens, then Ksh will not interpret it as a pattern list, but in this
      case, it is preferred to use test_must_fail, so lets do so.
      Signed-off-by: NBrandon Casey <casey@nrlssc.navy.mil>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      77b5be2a
    • B
      t/t3700: convert two uses of negation operator '!' to use test_must_fail · 460d562e
      Brandon Casey 提交于
      These two lines use the negation '!' operator to negate the result of a
      simple command.  Since these commands do not contain any pipes or other
      complexities, the test_must_fail function can be used and is preferred
      since it will additionally detect termination due to a signal.
      
      This was noticed because the second use of '!' does not include a space
      between the '!' and the opening parens.  Ksh interprets this as follows:
      
         !(pattern-list)
            Matches anything except one of the given patterns.
      
      Ksh performs a file glob using the pattern-list and then tries to execute
      the first file in the list.  If a space is added between the '!' and the
      open parens, then Ksh will not interpret it as a pattern list, but in this
      case, it is preferred to use test_must_fail, so lets do so.
      Signed-off-by: NBrandon Casey <casey@nrlssc.navy.mil>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      460d562e
    • B
      t/README: clarify test_must_fail description · 971ecbd1
      Brandon Casey 提交于
      Some have found the wording of the description to be somewhat ambiguous
      with respect to when it is desirable to use test_must_fail instead of
      "! <git-command>".  Tweak the wording somewhat to hopefully clarify that
      it is _because_ test_must_fail can detect segmentation fault that it is
      desirable to use it instead of "! <git-command>".
      Signed-off-by: NBrandon Casey <casey@nrlssc.navy.mil>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      971ecbd1
  12. 20 7月, 2010 1 次提交
  13. 17 7月, 2010 1 次提交
  14. 15 7月, 2010 4 次提交
    • J
      git --paginate: paginate external commands again · 030149a4
      Jonathan Nieder 提交于
      73e25e7c (git --paginate: do not commit pager choice too early,
      2010-06-26) failed to take some cases into account.
      
      1b. Builtins that do not use RUN_SETUP (like git config) do
          not find GIT_DIR set correctly when the pager is launched
          from run_builtin().  So the core.pager configuration is
          not honored from subdirectories of the toplevel for them.
      
      4a. External git commands (like git request-pull) relied on the
          early pager launch to take care of handling the -p option.
          Ever since 73e25e7c, they do not honor the -p option at all.
      
      4b. Commands invoked through ! aliases (like ls) were also relying
          on the early pager launch.
      
      Fix (4a) by launching the pager (if requested) before running such a
      “dashed external”.  For simplicity, this still does not search for a
      .git directory before running the external command; when run from a
      subdirectory of the toplevel, therefore, the “[core] pager”
      configuration is still not honored.
      
      Fix (4b) by launching pager if requested before carrying out such an
      alias.  Actually doing this has no effect, since the pager (if any)
      would have already been launched in a failed attempt to try a
      dashed external first.  The choice-of-pager-not-honored-from-
      subdirectory bug still applies here, too.
      
      (1b) is not a regression.  There is no need to fix it yet.
      
      Noticed by Junio.
      Signed-off-by: NJonathan Nieder <jrnieder@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      030149a4
    • J
      MERGE_RR is in .git, not .git/rr-cache · 3ca399d4
      Jay Soffian 提交于
      0af0ac7e (Move MERGE_RR from .git/rr-cache/ into .git/) moved the
      location of MERGE_RR but I found a few references to the old
      location.
      Signed-off-by: NJay Soffian <jaysoffian@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      3ca399d4
    • W
      merge-tree: fix where two branches share no changes · 21baa6e0
      Will Palmer 提交于
      15b4f7a6 (merge-tree: use ll_merge() not xdl_merge(), 2010-01-16)
      introduced a regression to merge-tree to cause it to segfault when merging
      files which existed in one branch, but not in the other or in the
      merge-base. This was caused by referencing entry->path at a time when
      entry was known to be possibly-NULL.
      
      To correct the problem, we save the path of the entry we came in with,
      as the path should be the same among all the stages no matter which
      sides are involved in the merge.
      Signed-off-by: NWill Palmer <wmpalmer@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      21baa6e0
    • W
      add basic tests for merge-tree · f32e9852
      Will Palmer 提交于
      merge-tree had no test cases, so here we add some very basic tests for
      it, including some known-breakages.
      
      [jc: with obvious/trivial fixups]
      Signed-off-by: NWill Palmer <wmpalmer@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      f32e9852
  15. 13 7月, 2010 1 次提交
  16. 12 7月, 2010 3 次提交
  17. 10 7月, 2010 1 次提交
  18. 09 7月, 2010 4 次提交
  19. 08 7月, 2010 3 次提交
  20. 07 7月, 2010 2 次提交