1. 31 10月, 2006 1 次提交
  2. 29 10月, 2006 1 次提交
    • J
      send-pack --keep: do not explode into loose objects on the receiving end. · c7740a94
      Junio C Hamano 提交于
      This adds "keep-pack" extension to send-pack vs receive pack protocol,
      and makes the receiver invoke "index-pack --stdin --fix-thin".
      
      With this, you can ask send-pack not to explode the result into
      loose objects on the receiving end.
      
      I've patched has_sha1_file() to re-check for added packs just
      like is done in read_sha1_file() for now, but I think the static
      "re-prepare" interface for packs was a mistake.  Creation of a
      new pack inside a process that needs to read objects in them
      back ought to be a rare event, so we are better off making the
      callers (such as receive-pack that calls "index-pack --stdin
      --fix-thin") explicitly call re-prepare.  That way we do not
      have to penalize ordinary users of read_sha1_file() and
      has_sha1_file().
      
      We would need to fix this someday.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      c7740a94
  3. 28 10月, 2006 3 次提交
  4. 25 10月, 2006 1 次提交
  5. 24 10月, 2006 1 次提交
    • J
      t3200: git-branch testsuite update · 5d9e8ee7
      Junio C Hamano 提交于
      The test expected "git branch --help" to exit successfully, but
      built-ins spawn "man" when given --help, and when the test is
      run, manpages may not be installed yet and "man" can legally
      exit non-zero in such a case.
      
      Also the new implementation logs "Created from master", instead
      of "Created from HEAD" in the reflog, which makes a lot more
      sense, so adjust the test to match that.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      5d9e8ee7
  6. 20 10月, 2006 2 次提交
  7. 19 10月, 2006 1 次提交
  8. 15 10月, 2006 1 次提交
  9. 14 10月, 2006 1 次提交
  10. 13 10月, 2006 1 次提交
  11. 08 10月, 2006 3 次提交
    • J
      git-pack-refs --all · b3d4204f
      Junio C Hamano 提交于
      This changes 'git-pack-refs' to pack only tags by default.
      Branches are meant to be updated, either by committing onto it
      yourself or tracking remote branches, and packed entries can
      become stale easily, but tags are usually "create once and live
      forever" and benefit more from packing.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      b3d4204f
    • R
      git-archive --format=zip: add symlink support · 62cdce17
      Rene Scharfe 提交于
      Add symlink support to ZIP file creation, and a few tests.
      
      This implementation sets the "version made by" field
      (creator_version) to Unix for symlinks, only; regular files and
      directories are still marked as originating from FAT/VFAT/NTFS.
      
      Also set "external file attributes" (attr2) to 0 for regular
      files and 16 for directories (FAT attribute), and to the file
      mode for symlinks.
      
      We could always set the creator_version to Unix and include the
      mode, but then Info-ZIP unzip would set the mode of the extracted
      files to *exactly* the value stored in attr2.  The FAT trick
      makes it apply the umask instead.  Note: FAT has no executable
      bit, so this information is not stored in the ZIP file.
      Signed-off-by: NRene Scharfe <rene.scharfe@lsrfire.ath.cx>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      62cdce17
    • M
      test-lib: separate individual test better in verbose mode. · 7a0cf2d0
      Martin Waitz 提交于
      When running tests with --verbose it is difficult to see where
      one test starts and where it ends because everything is printed
      in one big lump.
      Fix that by printing one single newline between each test.
      Signed-off-by: NMartin Waitz <tali@admingilde.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      7a0cf2d0
  12. 06 10月, 2006 2 次提交
    • D
      Remove bashism from t3210-pack-refs.sh · 26e5fc34
      Dennis Stosberg 提交于
      This bashism makes the test fail if /bin/sh is not bash.
      Signed-off-by: NDennis Stosberg <dennis@stosberg.net>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      26e5fc34
    • J
      Turn on recursive with --summary · d7014dc0
      Johannes Schindelin 提交于
      This makes "git log/diff --summary" imply recursive behaviour,
      whose effect is summarized in one test output:
      
          --- a/t/t4013/diff.diff-tree_--pretty_--root_--summary_initial
          +++ b/t/t4013/diff.diff-tree_--pretty_--root_--summary_initial
          @@ -5,7 +5,7 @@ Date:   Mon Jun 26 00:00:00 2006 +0000
      
      	 Initial
      
          - create mode 040000 dir
          + create mode 100644 dir/sub
            create mode 100644 file0
            create mode 100644 file2
           $
      
      When a file is created in a subdirectory, we used to say just
      the directory name only when that directory also was created,
      which did not make sense from two reasons.  It is not any more
      significant to create a new file in a new directory than to
      create a new file in an existing directory, and even if it were,
      reportinging the new directory name without saying the actual
      filename is not useful.
      Signed-off-by: NJohannes Schindelin <Johannes.Schindelin@gmx.de>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      d7014dc0
  13. 03 10月, 2006 1 次提交
  14. 02 10月, 2006 1 次提交
  15. 01 10月, 2006 1 次提交
  16. 28 9月, 2006 4 次提交
  17. 27 9月, 2006 2 次提交
    • S
      Allow git-checkout when on a non-existant branch. · 5a03e7f2
      Shawn Pearce 提交于
      I've seen some users get into situtations where their HEAD
      symbolic-ref is pointing at a non-existant ref.  (Sometimes this
      happens during clone when the remote repository lacks a 'master'
      branch.)  If this happens the user is unable to use git-checkout
      to switch branches as there is no prior commit to merge from.
      
      So instead of giving the user low-level errors about how HEAD
      can't be resolved and how not a single revision was given change
      the type of checkout to be a force and go through with the user's
      request anyway.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      5a03e7f2
    • S
      Ignore executable bit when adding files if filemode=0. · fd28b34a
      Shawn Pearce 提交于
      If the user has configured core.filemode=0 then we shouldn't set
      the execute bit in the index when adding a new file as the user
      has indicated that the local filesystem can't be trusted.
      
      This means that when adding files that should be marked executable
      in a repository with core.filemode=0 the user must perform a
      'git update-index --chmod=+x' on the file before committing the
      addition.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      fd28b34a
  18. 26 9月, 2006 1 次提交
  19. 25 9月, 2006 1 次提交
    • J
      Deprecate merge-recursive.py · a06f678e
      Junio C Hamano 提交于
      This renames merge-recursive written in Python to merge-recursive-old,
      and makes merge-recur as a synonym to merge-recursive.  We do not remove
      merge-recur yet, but we will remove merge-recur and merge-recursive-old
      in a few releases down the road.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      a06f678e
  20. 24 9月, 2006 2 次提交
  21. 23 9月, 2006 1 次提交
  22. 21 9月, 2006 1 次提交
  23. 18 9月, 2006 1 次提交
  24. 17 9月, 2006 2 次提交
    • J
      apply --unidiff-zero: loosen sanity checks for --unidiff=0 patches · 4be60962
      Junio C Hamano 提交于
      In "git-apply", we have a few sanity checks and heuristics that
      expects that the patch fed to us is a unified diff with at least
      one line of context.
      
       * When there is no leading context line in a hunk, the hunk
         must apply at the beginning of the preimage.  Similarly, no
         trailing context means that the hunk is anchored at the end.
      
       * We learn a patch deletes the file from a hunk that has no
         resulting line (i.e. all lines are prefixed with '-') if it
         has not otherwise been known if the patch deletes the file.
         Similarly, no old line means the file is being created.
      
      And we declare an error condition when the file created by a
      creation patch already exists, and/or when a deletion patch
      still leaves content in the file.
      
      These sanity checks are good safety measures, but breaks down
      when people feed a diff generated with --unified=0.  This was
      recently noticed first by Matthew Wilcox and Gerrit Pape.
      
      This adds a new flag, --unified-zero, to allow bypassing these
      checks.  If you are in control of the patch generation process,
      you should not use --unified=0 patch and fix it up with this
      flag; rather you should try work with a patch with context.  But
      if all you have to work with is a patch without context, this
      flag may come handy as the last resort.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      4be60962
    • J
      t1400: make test debuggable. · 8aac4b45
      Junio C Hamano 提交于
      I had a hard time figuring out why this test was failing with
      the packed-refs update without running it under "sh -x".  This
      makes output from "sh t1400-update-ref.sh -v" more descriptive.
      
      Updating other tests would be a good janitorial task.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      8aac4b45
  25. 07 9月, 2006 1 次提交
  26. 03 9月, 2006 1 次提交
    • C
      Trace into a file or an open fd and refactor tracing code. · 6ce4e61f
      Christian Couder 提交于
      If GIT_TRACE is set to an absolute path (starting with a
      '/' character), we interpret this as a file path and we
      trace into it.
      
      Also if GIT_TRACE is set to an integer value greater than
      1 and lower than 10, we interpret this as an open fd value
      and we trace into it.
      
      Note that this behavior is not compatible with the
      previous one.
      
      We also trace whole messages using one write(2) call to
      make sure messages from processes do net get mixed up in
      the middle.
      
      This patch makes it possible to get trace information when
      running "make test".
      Signed-off-by: NChristian Couder <chriscool@tuxfamily.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      6ce4e61f
  27. 01 9月, 2006 2 次提交
    • C
      Trace into open fd and refactor tracing code. · 7cf67205
      Christian Couder 提交于
      Now if GIT_TRACE is set to an integer value greater than 1
      and lower than 10, we interpret this as an open fd value
      and we trace into it. Note that this behavior is not
      compatible with the previous one.
      
      We also trace whole messages using one write(2) call to
      make sure messages from processes do net get mixed up in
      the middle.
      
      It's now possible to run the tests like this:
      
      	GIT_TRACE=9 make test 9>/var/tmp/trace.log
      Signed-off-by: NChristian Couder <chriscool@tuxfamily.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      7cf67205
    • J
      t5710: fix two thinkos. · 2c6d22df
      Junio C Hamano 提交于
      The intention of the test seems to be to build a long chain of
      clones that locally borrow objects from their parents and see the
      system give up dereferencing long chains.  There were two problems:
      
       (1) it did not test the right repository;
       (2) it did not build a chain long enough to trigger the limitation.
      
      I do not think it is a good test to make sure the limitation the
      current implementation happens to have still exists, but that is
      a topic at a totally different level.
      
      At least this fixes the broken test.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      2c6d22df