1. 04 4月, 2006 1 次提交
    • J
      Use sigaction and SA_RESTART in read-tree.c; add option in Makefile. · 72fdfb50
      Jason Riedy 提交于
      Might as well ape the sigaction change in read-tree.c to avoid
      the same potential problems.  The fprintf status output will
      be overwritten in a second, so don't bother guarding it.  Do
      move the fputc after disabling SIGALRM to ensure we go to the
      next line, though.
      
      Also add a NO_SA_RESTART option in the Makefile in case someone
      doesn't have SA_RESTART but does restart (maybe older HP/UX?).
      We want the builder to chose this specifically in case the
      system both lacks SA_RESTART and does not restart stdio calls;
      a compat #define in git-compat-utils.h would silently allow
      broken systems.
      Signed-off-by: NJason Riedy <ejr@cs.berkeley.edu>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      72fdfb50
  2. 02 3月, 2006 1 次提交
  3. 23 2月, 2006 2 次提交
  4. 07 2月, 2006 1 次提交
    • J
      read-tree --aggressive · 1b1fdf8c
      Junio C Hamano 提交于
      A new flag --aggressive resolves what we traditionally resolved
      with external git-merge-one-file inside index while read-tree
      3-way merge works.
      
      git-merge-octopus and git-merge-resolve use this flag before
      running git-merge-index with git-merge-one-file.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      1b1fdf8c
  5. 27 12月, 2005 1 次提交
  6. 29 11月, 2005 1 次提交
  7. 08 11月, 2005 1 次提交
  8. 11 10月, 2005 1 次提交
  9. 03 10月, 2005 1 次提交
  10. 02 10月, 2005 1 次提交
  11. 21 9月, 2005 1 次提交
  12. 14 9月, 2005 1 次提交
  13. 11 9月, 2005 5 次提交
  14. 30 7月, 2005 1 次提交
  15. 15 7月, 2005 1 次提交
  16. 16 6月, 2005 1 次提交
  17. 13 6月, 2005 4 次提交
    • J
      [PATCH] read-tree: loosen too strict index requirements · 036d51cc
      Junio C Hamano 提交于
      This patch teaches read-tree 3-way merge that, when only "the
      other tree" changed a path, and if the index file already has
      the same change, we are not in a situation that would clobber
      the index and the work tree, and lets the merge succeed; this is
      case #14ALT in t1000 test.  It does not change the result of the
      merge, but prevents it from failing when it does not have to.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      036d51cc
    • J
      [PATCH] Finish making --emu23 equivalent to pure 2-way merge. · 32192e66
      Junio C Hamano 提交于
      This adds #3ALT rule (and #2ALT rule for symmetry) to the
      read-tree 3-way merge logic that collapses paths that are added
      only in one branch and not in the other internally.
      
      This makes --emu23 to succeed in the last remaining case where
      the pure 2-way merge succeeded and earlier one failed.  Running
      diff between t1001 and t1005 test scripts shows that the only
      difference between the two is that --emu23 can leave the states
      into separate stages so that the user can use usual 3-way merge
      resolution techniques to carry forward the local changes when
      pure 2-way merge would have refused to run.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      32192e66
    • J
      [PATCH] read-tree: fix too strong index requirement #5ALT · e7f9bc41
      Junio C Hamano 提交于
      This fixes too strong index requirement 3-way merge enforces in
      one case: the same file is added in both branches.
      
      In this case, the original code insisted that if the index file
      has that path, it must match our branch and be up-to-date.
      However in this particular case, it only has to match it, and
      can be dirty.  We just need to make sure that we keep the
      work-tree copy instead of checking out the merge result.
      
      The resolution of such a path, however, cannot be left to
      outside script, because we will not keep the original stage0
      entries for unmerged paths when read-tree finishes, and at that
      point, the knowledge of "if we resolve it to match the new file
      added in both branches, the merge succeeds and the work tree
      would not lose information, but we should _not_ update the work
      tree from the resulting index file" is lost.  For this reason,
      the now code needs to resolve this case (#5ALT) internally.
      
      This affects some existing tests in the test suite, but all in
      positive ways.  In t1000 (3-way test), this #5ALT case now gets
      one stage0 entry, instead of an identical stage2 and stage3
      entry pair, for such a path, and one test that checked for merge
      failure (because the test assumed the "stricter-than-necessary"
      behaviour) does not have to fail anymore.  In t1005 (emu23
      test), two tests that involves a case where the work tree
      already had a change introduced in the upstream (aka "merged
      head"), the merge succeeds instead of failing.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      e7f9bc41
    • J
      [PATCH] read-tree --emu23. · 03efa6d9
      Junio C Hamano 提交于
      This new flag causes two-way fast forward to internally use the
      three-way merge mechanism.  This behaviour is intended to offer
      a better fast forward semantics when used in a dirty work tree.
      
      The new test t1005 is parallel to the existing t1001 "pure
      2-way" tests, but some parts that are commented out would fail.
      These failures are due to three-way merge enforcing too strict
      index requirements for cases that could succeed.  This problem
      will be addressed by later patches.
      
      Without even changing three-way mechanism, the --emu23 two-way
      fast forward already gives the user an easier-to-handle merge
      result when a file that "merged head" updates has local
      modifications.  This is demonstrated as "case 16" test in t1005.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      03efa6d9
  18. 10 6月, 2005 2 次提交
    • L
      git-read-tree: remove deleted files in the working directory · aa16021e
      Linus Torvalds 提交于
      Only when "-u" is used of course.
      aa16021e
    • L
      git-read-tree: add "--reset" flag · 438195cc
      Linus Torvalds 提交于
      This is the same as "-m", but it will silently ignore any unmerged
      entries, which makes it useful for efficiently forcing a new position
      regardless of the state of the current index file.
      
      IOW, to reset to a previous HEAD (in case you have had a failed
      merge, for example), you'd just do
      
      	git-read-tree -u --reset HEAD
      
      which will also update your working tree to the right state.
      
      NOTE! The "update" will not remove files that may have been added by the
      merge.  Yet.
      438195cc
  19. 08 6月, 2005 3 次提交
  20. 07 6月, 2005 3 次提交
  21. 06 6月, 2005 6 次提交
  22. 21 5月, 2005 1 次提交
    • L
      sparse cleanup · e99d59ff
      Linus Torvalds 提交于
      Fix various things that sparse complains about:
       - use NULL instead of 0
       - make sure we declare everything properly, or mark it static
       - use proper function declarations ("fn(void)" instead of "fn()")
      
      Sparse is always right.
      e99d59ff