1. 29 8月, 2009 2 次提交
  2. 28 8月, 2009 8 次提交
  3. 27 8月, 2009 10 次提交
  4. 22 8月, 2009 7 次提交
  5. 19 8月, 2009 3 次提交
  6. 17 8月, 2009 1 次提交
    • J
      docs: describe impact of repack on "clone -s" · 13354f53
      Jeff King 提交于
      The effects of repacking on a repository with alternates are a bit
      subtle. The two main things users will want are:
      
        1. Not to waste disk space by accidentally copying objects which could
           be shared.
      
        2. Copying all objects explicitly to break the dependency on the source
           repo.
      
      This patch describes both under the "clone -s" documentation. It makes
      sense to put it there rather than in git-repack.txt for both cases.
      
      For (1), we are warning the user who is using "clone -s" about what _not_
      to do, so we need to get their attention when reading about "clone -s".
      
      For (2), we are telling them how git-repack can be used to accomplish a
      task, but until they know that git-repack is the right tool, they have no
      reason to look at the repack documentation.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      13354f53
  7. 16 8月, 2009 2 次提交
    • T
      add -p: do not attempt to coalesce mode changes · 3d792161
      Thomas Rast 提交于
      In 0392513f (add-interactive: refactor mode hunk handling, 2009-04-16),
      we merged the interaction loops for mode changes and hunk staging.
      This was fine at the time, because 0beee4c6 (git-add--interactive:
      remove hunk coalescing, 2008-07-02) removed hunk coalescing.
      
      However, in 7a26e653 (Revert "git-add--interactive: remove hunk
      coalescing", 2009-05-16), we resurrected it.  Since then, the code
      would attempt in vain to merge mode changes with diff hunks,
      corrupting both in the process.
      
      We add a check to the coalescing loop to ensure it only looks at diff
      hunks, thus skipping mode changes.
      Noticed-by: NKirill Smelkov <kirr@mns.spb.ru>
      Signed-off-by: NThomas Rast <trast@student.ethz.ch>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      3d792161
    • K
      git add -p: demonstrate failure when staging both mode and hunk · 87ca2eaa
      Kirill Smelkov 提交于
      When trying to stage changes to file which has also pending `chmod +x`,
      `git add -p` produces lots of 'Use of uninitialized value ...' warnings
      and fails to do the job:
      
          $ echo content >> file
          $ chmod +x file
          $ git add -p
          diff --git a/file b/file
          index e69de29..d95f3ad
          --- a/file
          +++ b/file
          old mode 100644
          new mode 100755
          Stage mode change [y,n,q,a,d,/,j,J,g,?]? y
          @@ -0,0 +1 @@
          +content
          Stage this hunk [y,n,q,a,d,/,K,g,e,?]? y
          Use of uninitialized value $o_ofs in addition (+) at .../git-add--interactive line 776.
          Use of uninitialized value $ofs in numeric le (<=) at .../git-add--interactive line 806.
          Use of uninitialized value $o0_ofs in concatenation (.) or string at .../git-add--interactive line 830.
          Use of uninitialized value $n0_ofs in concatenation (.) or string at .../git-add--interactive line 830.
          Use of uninitialized value $o_ofs in addition (+) at .../git-add--interactive line 776.
          fatal: corrupt patch at line 5
          diff --git a/file b/file
          index e69de29..d95f3ad
          --- a/file
          +++ b/file
          @@ -,0 + @@
          +content
      Signed-off-by: NKirill Smelkov <kirr@mns.spb.ru>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      87ca2eaa
  8. 13 8月, 2009 6 次提交
  9. 11 8月, 2009 1 次提交