1. 04 6月, 2005 6 次提交
    • D
      [PATCH] ssh-protocol version, command types, response code · dba385bb
      Daniel Barkalow 提交于
      This patch makes an incompatible change to the protocol used by
      rpull/rpush which will let it be extended in the future without
      incompatible changes.
      Signed-off-by: NDaniel Barkalow <barkalow@iabervon.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      dba385bb
    • J
      [PATCH] diff: Update -B heuristics. · eeaa4603
      Junio C Hamano 提交于
      As Linus pointed out on the mailing list discussion, -B should
      break a files that has many inserts even if it still keeps
      enough of the original contents, so that the broken pieces can
      later be matched with other files by -M or -C.  However, if such
      a broken pair does not get picked up by -M or -C, we would want
      to apply different criteria; namely, regardless of the amount of
      new material in the result, the determination of "rewrite"
      should be done by looking at the amount of original material
      still left in the result.  If you still have the original 97
      lines from a 100-line document, it does not matter if you add
      your own 13 lines to make a 110-line document, or if you add 903
      lines to make a 1000-line document.  It is not a rewrite but an
      in-place edit.  On the other hand, if you did lose 97 lines from
      the original, it does not matter if you added 27 lines to make a
      30-line document or if you added 997 lines to make a 1000-line
      document.  You did a complete rewrite in either case.
      
      This patch introduces a post-processing phase that runs after
      diffcore-rename matches up broken pairs diffcore-break creates.
      The purpose of this post-processing is to pick up these broken
      pieces and merge them back into in-place modifications.  For
      this, the score parameter -B option takes is changed into a pair
      of numbers, and it takes "-B99/80" format when fully spelled
      out.  The first number is the minimum amount of "edit" (same
      definition as what diffcore-rename uses, which is "sum of
      deletion and insertion") that a modification needs to have to be
      broken, and the second number is the minimum amount of "delete"
      a surviving broken pair must have to avoid being merged back
      together.  It can be abbreviated to "-B" to use default for
      both, "-B9" or "-B9/" to use 90% for "edit" but default (80%)
      for merge avoidance, or "-B/75" to use default (99%) "edit" and
      75% for merge avoidance.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      eeaa4603
    • J
      [PATCH] diff: Clean up diff_scoreopt_parse(). · 0e3994fa
      Junio C Hamano 提交于
      This cleans up diff_scoreopt_parse() function that is used to
      parse the fractional notation -B, -C and -M option takes.  The
      callers are modified to check for errors and complain.  Earlier
      they silently ignored malformed input and falled back on the
      default.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      0e3994fa
    • J
      [PATCH] diff: Fix docs and add -O to diff-helper. · ce240675
      Junio C Hamano 提交于
      This patch updates diff documentation and usage strings:
      
       - clarify the semantics of -R.  It is not "output in reverse";
         rather, it is "I will feed diff backwards".  Semantically
         they are different when -C is involved.
      
       - describe -O in usage strings of diff-* brothers.  It was
         implemented, documented but not described in usage text.
      
      Also it adds -O to diff-helper.  Like -S (and unlike -M/-C/-B),
      this option can work on sanitized diff-raw output produced by
      the diff-* brothers.  While we are at it, the call it makes to
      diffcore is cleaned up to use the diffcore_std() like everybody
      else, and the declaration for the low level diffcore routines
      are moved from diff.h (public) to diffcore.h (private between
      diff.c and diffcore backends).
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      ce240675
    • J
      [PATCH] Tweak count-delta interface · 355e76a4
      Junio C Hamano 提交于
      Make it return copied source and insertion separately, so that
      later implementation of heuristics can use them more flexibly.
      
      This does not change the heuristics implemented in
      diffcore-rename nor diffcore-break in any way.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      355e76a4
    • R
      [PATCH] git-tar-tree: do only basic tests in t/t5000-git-tar-tree.sh · 5b860406
      Rene Scharfe 提交于
      git-tar-tree: remove tests of long path handling out of t5000-tar-tree.sh
      and make test script cope with tar programs displaying file modification
      date as hh:mm (newer variants show it as hh:mm:ss).
      
      This makes the test cover only basic functionality that is expected to
      be handled even by older tar programs.  Tests for long filenames (which
      require pax extended headers) can be added separately.
      
      I ran this test successfully with GNU tar 1.13, 1.14 and 1.15.1.
      Signed-off-by: NRene Scharfe <rene.scharfe@lsrfire.ath.cx>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      5b860406
  2. 03 6月, 2005 9 次提交
  3. 02 6月, 2005 7 次提交
    • L
      Run the tutorial through ispell once more · cc29f732
      Linus Torvalds 提交于
      People are making fun of me for being a bad speeler.
      cc29f732
    • L
      Split up unpack_sha1_file() some more · 5180cacc
      Linus Torvalds 提交于
      Make a separate helper for parsing the header of an object file
      (really carefully) and for unpacking the rest. This means that
      anybody who uses the "unpack_sha1_header()" interface can easily
      look at the header and decide to unpack the rest too, without
      doing any extra work.
      5180cacc
    • L
      Add "unpack_sha1_header()" helper function · c4483576
      Linus Torvalds 提交于
      It's for people who aren't necessarily interested in the whole
      unpacked file, but do want to know the header information (size,
      type, etc..)
      
      For example, the delta code can use this to figure out whether
      an object is already a delta object, and what it is a delta
      against, without actually bothering to unpack all of the actual
      data in the delta.
      c4483576
    • L
      tutorial.txt: start describing how to copy repositories · f35ca9ed
      Linus Torvalds 提交于
      Both locally and remotely.
      f35ca9ed
    • J
      [PATCH] diff: mode bits fixes · 67574c40
      Junio C Hamano 提交于
      The core GIT repository has trees that record regular file mode
      in 0664 instead of normalized 0644 pattern.  Comparing such a
      tree with another tree that records the same file in 0644
      pattern without content changes with git-diff-tree causes it to
      feed otherwise unmodified pairs to the diff_change() routine,
      which triggers a sanity check routine and barfs.  This patch
      fixes the problem, along with the fix to another caller that
      uses unnormalized mode bits to call diff_change() routine in a
      similar way.
      
      Without this patch, you will see "fatal error" from diff-tree
      when you run git-deltafy-script on the core GIT repository
      itself.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      67574c40
    • L
      Update tutorial for simplified "git" script. · 81bb573e
      Linus Torvalds 提交于
      Use "git commit" instead of "git-commit-script", and talk about using
      "git log" before introducing the more complex "git-whatchanged".
      
      In short, try to make it feel a bit more normal to those poor souls
      using CVS.
      
      Do some whitspace edits too, to make the side notes stand out a bit
      more.
      81bb573e
    • L
      Add "git" and "git-log-script" helper scripts. · e764b8e8
      Linus Torvalds 提交于
      The "git" script is just shorthand: "git xyz <args>" will just execute
      "git-xyz-script <args>", which is useful for people used to the CVS
      naming convention. So "git log" will run the new git-log-script, which
      is just a wrapper around the new pretty-printing git-rev-list.
      
      Cheesy.
      e764b8e8
  4. 01 6月, 2005 10 次提交
  5. 31 5月, 2005 8 次提交
    • L
      git-rev-list: add "--parents" command line flag · 97658004
      Linus Torvalds 提交于
      It makes rev-list show the list of parents, the same
      way git-rev-tree does (but without the expense).
      97658004
    • L
      git-rev-list: use proper lazy reachability analysis · 8906300f
      Linus Torvalds 提交于
      This mean sthat you can give a beginning/end pair to git-rev-list,
      and it will show all entries that are reachable from the beginning
      but not the end.
      
      For example
      
      	git-rev-list v2.6.12-rc5 v2.6.12-rc4
      
      shows all commits that are in -rc5 but are not in -rc4.
      8906300f
    • L
      commit_list_insert: return the new commit list entry · ac5155ef
      Linus Torvalds 提交于
      This is useful for when we want to insert the next one after
      this new one, for example.
      ac5155ef
    • J
      [PATCH] Show dissimilarity index for D and N case. · 70aadac0
      Junio C Hamano 提交于
      The way broken deletes and creates are shown in the -p
      (diff-patch) output format has become consistent with how
      rename/copy edits are shown.  They will show "dissimilarity
      index" value, immediately following the "deleted file mode" and
      "new file mode" lines.
      
      The git-apply is taught to grok such an extended header.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      70aadac0
    • J
      [PATCH] Add -O<orderfile> option to diff-* brothers. · af5323e0
      Junio C Hamano 提交于
      A new diffcore filter diffcore-order is introduced.  This takes
      a text file each of whose line is a shell glob pattern.  Patches
      that match a glob pattern on an earlier line in the file are
      output before patches that match a later line, and patches that
      do not match any glob pattern are output last.
      
      A typical orderfile for git project probably should look like
      this:
      
          README
          Makefile
          Documentation
          *.h
          *.c
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      af5323e0
    • J
      [PATCH] Buglets fix in the new two scripts · 2036d841
      Junio C Hamano 提交于
      Should be obvious...
      
       - Use $VISUAL, $EDITOR, in this order if set, and fall back on
         vi.
      
       - Status R, C, D, N usually are followed by number, so adjust
         case arms to that pattern.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      2036d841
    • L
      git-resolve-script: use "git-apply --stat" instead of diffstat · 866b973b
      Linus Torvalds 提交于
      Not everybody necessarily even has diffstat installed.
      866b973b
    • N
      [PATCH] mkdelta enhancements (take 2) · 53d4b460
      Nicolas Pitre 提交于
      Although it was described as such, git-mkdelta didn't really attempt to
      find the best delta against any previous object in the list, but was
      only able to create a delta against the preceeding object.  This patch
      reworks the code to fix that limitation and hopefully makes it a bit
      clearer than before, including fixing the delta loop detection which was
      broken.
      
      This means that
      
      	git-mkdelta sha1 sha2 sha3 sha4 sha5 sha6
      
      will now create a sha2 delta against sha1, a sha3 delta against either
      sha2 or sha1 and keep the best one, a sha4 delta against either sha3,
      sha2 or sha1, etc.  The --max-behind argument limits that search for the
      best delta to the specified number of previous objects in the list.  If
      no limit is specified it is unlimited (note: it might run out of
      memory with long object lists).
      
      Also added a -q (quiet) switch so it is possible to have 3 levels of
      output: -q for nothing, -v for verbose, and if none of -q nor -v is
      specified then only actual changes on the object database are shown.
      
      Finally the git-deltafy-script has been updated accordingly, and some
      bugs fixed (thanks to Stephen C. Tweedie for spotting them).
      
      This version has been toroughly tested and I think it is ready
      for public consumption.
      Signed-off-by: NNicolas Pitre <nico@cam.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      53d4b460