1. 09 6月, 2005 6 次提交
    • J
      [PATCH] git-diff-cache: handle pathspec beginning with a dash · e0f0e891
      Jonas Fonseca 提交于
      Parse everything after '--' as tree name or pathspec.
      Signed-off-by: NJonas Fonseca <fonseca@diku.dk>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      e0f0e891
    • L
      Leave merge failures in the filesystem · 2a68a865
      Linus Torvalds 提交于
      This changes how we handle merges: if a automated merge
      fails, we will leave the index as a clean entry pointing
      to the original branch, and leave the actual file _dirty_
      the way the "merge" program left it.
      
      You can then just do "git-diff-files -p" to see what the
      merge conflicts did, fix them up, and commit the end result.
      
      NOTE NOTE NOTE! Do _not_ use "git commit" to commit such
      a merge. It won't set the parents right. I'll need to fix
      that. In the meantime, you'd need to merge using
      
      	git-commit-tree $(git-write) -p HEAD -p MERGE_HEAD
      
      or something like that by hand.
      2a68a865
    • L
      Fix SIGSEGV on unmerged files in git-diff-files -p · f9e77506
      Linus Torvalds 提交于
      NULL is not considered a VALID pathspec.
      f9e77506
    • J
      [PATCH] Tests: read-tree -m test updates. · 7d95ee93
      Junio C Hamano 提交于
      This updates t1000 (basic 3-way merge test) to check the merge
      results for both successful cases (earlier one checked the
      result for only one of them).  Also fixes typos in t1002 that
      broke '&&' chain, potentially missing a test failure before the
      chain got broken.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      7d95ee93
    • L
      Make default merge messages denser. · 5b1ea09d
      Linus Torvalds 提交于
      In particular, make them readable on one line since that's what all the
      tools like git-shortlog and gitk end up showing.
      5b1ea09d
    • J
      [PATCH] three --merge-order bug fixes · 4e734673
      Jon Seymour 提交于
      This patch fixes three bugs in --merge-order support
          * mark_ancestors_uninteresting was unnecessarily exponential which
            caused a problem when a commit with no parents was merged near the
            head of something like the linux kernel
          * removed a spurious statement from find_base which wasn't
            apparently causing problems now, but wasn't correct either.
          * removed an unnecessarily strict check from find_base_for_list
            that causes a problem if git-rev-list commit ^parent-of-commit
            is specified.
          * added some unit tests which were accidentally omitted from
            original merge-order patch
      
      The fix to mark_ancestors_uninteresting isn't an optimal fix - a full
      graph scan will still be performed in this case even though it is
      not strictly required. However, a full graph scan is linear
      and still no worse than git-rev-list HEAD which runs in less than 2
      seconds on a warm cache.
      Signed-off-by: NJon Seymour <jon.seymour@gmail.com>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      4e734673
  2. 08 6月, 2005 12 次提交
  3. 07 6月, 2005 14 次提交
    • D
      [PATCH] Document git-ssh-pull and git-ssh-push · 63aff4fe
      Daniel Barkalow 提交于
      This fixes the documentation for git-ssh-push, as called by users (if you
      run git-ssh-pull or git-ssh-push on one machine, the other runs on the
      other machine, and they transfer data in the specified direction).
      
      This also adds documentation for the -w option and for using filenames for
      the commit-id (which does what you'd want: uses the source side's value,
      not the value already on the target, even if you're running it on the
      target).
      
      It also credits me with the programs and the documentation for
      git-ssh-push.
      
      Someone who knows asciidoc should make sure I didn't mess up the
      formatting. I'm only sure of the ascii part.
      Signed-off-by: NDaniel Barkalow <barkalow@iabervon.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      63aff4fe
    • L
      git-resolve-script: stop when the automated merge fails · e5b905c4
      Linus Torvalds 提交于
      No point in doing a tree write that will just throw
      confusing messages on the screen.
      e5b905c4
    • L
      Make fetch/pull scripts terminate cleanly on errors · ed37b5b2
      Linus Torvalds 提交于
      Don't continue with a merge if the fetch failed.
      ed37b5b2
    • L
      git-resolve-script: don't wait for three seconds any more · 3f4eff75
      Linus Torvalds 提交于
      We used to overwrite peoples dirty state.  We don't any more.  So don't
      print the scary message and don't delay, just do the update already.
      3f4eff75
    • D
      [PATCH] -w support for git-ssh-pull/push · c7c4bbe6
      Daniel Barkalow 提交于
      This adds support for -w to git-ssh-pull and git-ssh-push to make
      receiving side write the commit that was transferred to a reference file.
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      c7c4bbe6
    • D
      [PATCH] Generic support for pulling refs · cd541a68
      Daniel Barkalow 提交于
      This adds support to pull.c for requesting a reference and writing it to a
      file. All of the git-*-pull programs get stubs for now.
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      cd541a68
    • D
      [PATCH] rsh.c environment variable · 9182f89a
      Daniel Barkalow 提交于
      rsh.c used to set the environment variable for the object database when
      invoking the remote command. Now that there is a GIT_DIR variable, use
      that instead.
      Signed-off-by: NDaniel Barkalow <barkalow@iabervon.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      9182f89a
    • D
      [PATCH] Operations on refs · 95fc7512
      Daniel Barkalow 提交于
      This patch adds code to read a hash out of a specified file under
      {GIT_DIR}/refs/, and to write such files atomically and optionally with an
      compare and lock.
      Signed-off-by: NDaniel Barkalow <barkalow@iabervon.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      95fc7512
    • L
      git-read-tree: some "final" cleanups · 45132251
      Linus Torvalds 提交于
      Looking good, but hey, it's not like I even have a real testcase for any
      of this.  But unlike the mess that this was yerstday, today read-cache
      is pretty readable and understandable.  Which is always a good sign.
      45132251
    • L
      git-read-tree: simplify merge loops enormously · d723c690
      Linus Torvalds 提交于
      Stop trying to haev this stateful thing that keeps track of what it has
      seen, and use a much simpler "gather all the different stages with the
      same name together and just merge them in one go" approach.
      
      Makes it a lot more understandable, and allows the different merge
      algorithms to share the basic merge loop.
      d723c690
    • J
      [PATCH] index locking like everybody else · 96cd5429
      Junio C Hamano 提交于
      This patch teaches read-tree how to use the index file locking
      helpers the same way "checkout-cache -u" and "update-cache" do.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      96cd5429
    • L
      Add "__noreturn__" attribute to die() and usage() · 90334cf7
      Linus Torvalds 提交于
      Only with gcc. It fixes some warnings for certain versions
      of gcc, but not apparently all.
      90334cf7
    • L
      git-rev-list: make sure to link with ssl libraries · 64de3562
      Linus Torvalds 提交于
      Needed for the bignum stuff used by merge-order.
      64de3562
    • J
      [PATCH] Modify git-rev-list to linearise the commit history in merge order. · a3437b8c
      jon@blackcubes.dyndns.org 提交于
      This patch linearises the GIT commit history graph into merge order
      which is defined by invariants specified in Documentation/git-rev-list.txt.
      
      The linearisation produced by this patch is superior in an objective sense
      to that produced by the existing git-rev-list implementation in that
      the linearisation produced is guaranteed to have the minimum number of
      discontinuities, where a discontinuity is defined as an adjacent pair of
      commits in the output list which are not related in a direct child-parent
      relationship.
      
      With this patch a graph like this:
      
      	a4 ---
      	| \   \
      	|  b4 |
      	|/ |  |
      	a3 |  |
      	|  |  |
      	a2 |  |
      	|  |  c3
      	|  |  |
      	|  |  c2
      	|  b3 |
      	|  | /|
      	|  b2 |
      	|  |  c1
      	|  | /
      	|  b1
      	a1 |
      	|  |
      	a0 |
      	| /
      	root
      
      Sorts like this:
      
      	= a4
      	| c3
      	| c2
      	| c1
      	^ b4
      	| b3
      	| b2
      	| b1
      	^ a3
      	| a2
      	| a1
      	| a0
      	= root
      
      Instead of this:
      
      	= a4
      	| c3
      	^ b4
      	| a3
      	^ c2
      	^ b3
      	^ a2
      	^ b2
      	^ c1
      	^ a1
      	^ b1
      	^ a0
      	= root
      
      A test script, t/t6000-rev-list.sh, includes a test which demonstrates
      that the linearisation produced by --merge-order has less discontinuities
      than the linearisation produced by git-rev-list without the --merge-order
      flag specified. To see this, do the following:
      
      	cd t
      	./t6000-rev-list.sh
      	cd trash
      	cat actual-default-order
      	cat actual-merge-order
      
      The existing behaviour of git-rev-list is preserved, by default. To obtain
      the modified behaviour, specify --merge-order or --merge-order --show-breaks
      on the command line.
      
      This version of the patch has been tested on the git repository and also on the linux-2.6
      repository and has reasonable performance on both - ~50-100% slower than the original algorithm.
      
      This version of the patch has incorporated a functional equivalent of the Linus' output limiting
      algorithm into the merge-order algorithm itself. This operates per the notes associated
      with Linus' commit 337cb3fb.
      
      This version has incorporated Linus' feedback regarding proposed changes to rev-list.c.
      (see: [PATCH] Factor out filtering in rev-list.c)
      
      This version has improved the way sort_first_epoch marks commits as uninteresting.
      
      For more details about this change, refer to Documentation/git-rev-list.txt
      and http://blackcubes.dyndns.org/epoch/.
      Signed-off-by: NJon Seymour <jon.seymour@gmail.com>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      a3437b8c
  4. 06 6月, 2005 8 次提交