1. 05 12月, 2005 9 次提交
  2. 04 12月, 2005 7 次提交
  3. 03 12月, 2005 3 次提交
  4. 02 12月, 2005 12 次提交
  5. 01 12月, 2005 4 次提交
  6. 30 11月, 2005 5 次提交
    • J
      Tutorial: adjust merge example to recursive strategy. · 0501c240
      Junio C Hamano 提交于
      Current default, merge-recursive, gives slightly different
      message while working from merge-resolve which was used to
      prepare the illustration in the tutorial.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      0501c240
    • J
      merge-recursive: match the unmerged index entry behaviour with merge-resolve · 58cce8a8
      Junio C Hamano 提交于
      This minimally changes merge-recursive to match what happens
      when O->A, O->B, A!=B 3-way filelevel merge leaves conflicts to
      the new merge-resolve behaviour.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      58cce8a8
    • J
      diff-files: show diffs with stage0 and unmerged stage at the same time. · 15bf57a1
      Junio C Hamano 提交于
      After thinking about it more, I realized that much of the change
      I did on top of Linus' version does not make much sense.  This
      commit reverts it so that it by default shows diffs with stage0
      paths or stage2 paths with working tree; the unmerged stage to
      use can be overridden with -1/-2/-3 option (-2 is the default so
      essentially is a no-op).
      
      When the index file is unmerged, we are by definition in the
      middle of a conflicting merge, and we should show the diff with
      stage 2 by default.  More importantly, paths without conflicts
      are updated in the working tree and collapsed to stage0 in the
      index, so showing diff with stage0 at the same time does not
      hurt.  In normal cases, stage0 entries should be in sync with
      the working tree files and does not clutter the output.  It even
      helps the user to realize that the working tree has local
      changes unrelated to the merge and remember to be careful not to
      do a "git-commit -a" after resolving the conflicts.
      
      When there is no unmerged entries, giving diff_unmerged_stage a
      default value of 2 does not cause any harm, because it would not
      be used anyway.  So in all, always showing diff between stage0
      paths and unmerged entries from a stage (defaulting to 2) is the
      right thing to do, as Linus originally did.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      15bf57a1
    • L
      merge-one-file: leave unmerged index entries upon automerge failure. · 354b9b59
      Linus Torvalds 提交于
      When automerge fails, we used to collapse the path to stage0
      from "our" branch, to help "diff-files" users to view the
      half-merged state against the current HEAD.  Now diff-files has
      been taught how to compare with unmerged stage2,leaving them
      unmerged is a better thing to do, especially this prevents the
      unresolved conflicts to be committed by mistake.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      354b9b59
    • L
      diff-files: -1/-2/-3 to diff against unmerged stage. · 10637b84
      Linus Torvalds 提交于
      While resolving conflicted merge, it was not easy to compare the
      working tree file with unmerged index entries.  This commit
      introduces new options -1/-2/-3 (with synonyms --base, --ours,
      and --theirs) to compare working tree files with specified
      stages.
      
      When none of these options are given, the command defaults to -2
      if the index file is unmerged, otherwise it acts as before.
      
      [jc: majorly butchered from the version Linus originally posted.]
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      10637b84