From: "Dan Hensgen" <dan@methodhead.com>
To: git@vger.kernel.org
Subject: 0001-Detailed-tools-useful-when-resolving-merge-conflicts.patch
Date: Wed, 20 Aug 2008 23:27:32 -0400 [thread overview]
Message-ID: <8f6a00e30808202027s1d481a01q22c5a7444cd03f80@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 53 bytes --]
Sorry, had trouble with git send-email.
Thanks,
Dan
[-- Attachment #2: 0001-Detailed-tools-useful-when-resolving-merge-conflicts.patch --]
[-- Type: application/octet-stream, Size: 2019 bytes --]
From b2ca52f8ba70e689cd8e9424707629e4ca37fab3 Mon Sep 17 00:00:00 2001
From: Dan Hensgen <dan@macbook.danhensgen.com>
Date: Wed, 20 Aug 2008 23:14:06 -0400
Subject: [PATCH] Detailed tools useful when resolving merge conflicts
Signed-off-by: Dan Hensgen <dan@methodhead.com>
---
Documentation/git-merge.txt | 27 ++++++++++++++++++++-------
1 files changed, 20 insertions(+), 7 deletions(-)
diff --git a/Documentation/git-merge.txt b/Documentation/git-merge.txt
index 17a15ac..bff56c5 100644
--- a/Documentation/git-merge.txt
+++ b/Documentation/git-merge.txt
@@ -126,13 +126,26 @@ After seeing a conflict, you can do two things:
up working tree changes made by 2. and 3.; 'git-reset --hard' can
be used for this.
- * Resolve the conflicts. `git diff` would report only the
- conflicting paths because of the above 2. and 3.
- Edit the working tree files into a desirable shape
- ('git mergetool' can ease this task), 'git-add' or 'git-rm'
- them, to make the index file contain what the merge result
- should be, and run 'git-commit' to commit the result.
-
+ * Resolve the conflicts. Edit the working tree files into shape
+ and 'git-add' to the index. 'git-commit' to seal the deal.
+
+You can work through conflict with a number of tools:
+
+ * Look at the originals. 'git show :1:filename' shows the
+ common ancestor, 'git show :2:filename' shows the HEAD
+ version and 'git show :3:filename' shows the remote
+ version.
+
+ * Diff the conflicts against the originals. 'git-diff --base'
+ diffs against the common ancestor, 'git-diff --ours' diffs
+ against the HEAD version and 'git-diff --theirs' diffs
+ against the remote version.
+
+ * Use a mergetool. 'git diff mergetool' to start the merge
+ process. Four versions of a conflicted file get written as
+ the mergetool starts, BASE, LOCAL, REMOTE and BACKUP.
+ They're created for the mergetool, but they're handy
+ alternatives to the 'git show :1:filename' command.
SEE ALSO
--------
--
1.5.6.2
next reply other threads:[~2008-08-21 3:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-21 3:27 Dan Hensgen [this message]
2008-08-21 5:53 ` 0001-Detailed-tools-useful-when-resolving-merge-conflicts.patch Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8f6a00e30808202027s1d481a01q22c5a7444cd03f80@mail.gmail.com \
--to=dan@methodhead.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).