1. 06 6月, 2005 16 次提交
  2. 05 6月, 2005 3 次提交
    • L
      848b292e
    • L
      Add git-shortlog perl script · fa375c7f
      Linus Torvalds 提交于
      Somebody finally came through - Jeff Garzik gets a gold
      star for writing a shortlog script for git, so that I
      can do nice release announcments again.
      
      I added name translations from the current kernel history
      (and git, for that matter). Hopefully it won't grow at
      nearly the same rate the BK equivalent did, since 99% of
      the time git records the full name already.
      
      Usage: just do
      
              git-rev-list --pretty HEAD ^LAST_HEAD | git-shortlog
      
      or, in fact, use any of the other tools (git-diff-tree,
      git-whatchanged etc) that use the default "pretty" commit format.
      fa375c7f
    • L
      git-rev-list: allow arbitrary head selections, use git-rev-tree syntax · 337cb3fb
      Linus Torvalds 提交于
      This makes git-rev-list use the same command line syntax to mark the
      commits as git-rev-tree does, and instead of just allowing a start and
      end commit, it allows an arbitrary list of "interesting" and "uninteresting"
      commits.
      
      For example, imagine that you had three branches (a, b and c) that you
      are interested in, but you don't want to see stuff that already exists
      in another persons three releases (x, y and z). You can do
      
      	git-rev-list a b c ^x ^y ^z
      
      (order doesn't matter, btw - feel free to put the uninteresting ones
      first or otherwise swithc them around), and it will show all the
      commits that are reachable from a/b/c but not reachable from x/y/z.
      
      The old syntax "git-rev-list start end" would not be written as
      "git-rev-list start ^end", or "git-rev-list ^end start".
      
      There's no limit to the number of heads you can specify (unlike
      git-rev-tree, which can handle a maximum of 16 heads).
      337cb3fb
  3. 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
  4. 03 6月, 2005 9 次提交
  5. 02 6月, 2005 6 次提交
    • 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