git-commit-vandalism/builtin
Jonathan Nieder f0531a2937 checkout --conflict=diff3: add a label for ancestor
git checkout --conflict=diff3 can be used to present conflicts hunks
including text from the common ancestor:

	<<<<<<< ours
	ourside
	|||||||
	original
	=======
	theirside
	>>>>>>> theirs

The added information is helpful for resolving a merge by hand, and
merge tools can usually understand it without trouble because it looks
like output from ‘diff3 -m’.

diff3 includes a label for the merge base on the ||||||| line, and it
seems some tools (for example, Emacs 22’s smerge-mode) cannot parse
conflict hunks without such a label.  Humans could use help in
interpreting the output, too.  So change the marker for the start of the
text from the common ancestor to include the label “base”.

git rerere’s conflict identifiers are not affected: to parse conflict
hunks, rerere looks for whitespace after the ||||||| marker rather
than a newline, and to compute preimage ids, rerere has its own code
for creating conflict hunks.  No other code in git tries to parse
conflict hunks.

Requested-by: Stefan Monnier <monnier@iro.umontreal.ca>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2010-03-20 20:36:11 -07:00
..
add.c Merge branch 'cp/add-u-pathspec' 2010-03-10 15:32:02 -08:00
annotate.c
apply.c Merge branch 'bg/apply-fix-blank-at-eof' 2010-03-20 11:29:35 -07:00
archive.c Move 'builtin-*' into a 'builtin/' subdirectory 2010-02-22 14:29:41 -08:00
bisect--helper.c
blame.c Merge branch 'maint' 2010-03-13 21:31:42 -08:00
branch.c Merge branch 'lt/deepen-builtin-source' 2010-03-10 15:25:18 -08:00
bundle.c
cat-file.c
check-attr.c
check-ref-format.c
checkout-index.c
checkout.c checkout --conflict=diff3: add a label for ancestor 2010-03-20 20:36:11 -07:00
clean.c
clone.c Merge branch 'tc/transport-verbosity' 2010-03-15 00:58:42 -07:00
commit-tree.c
commit.c Merge branch 'lt/deepen-builtin-source' 2010-03-10 15:25:18 -08:00
config.c
count-objects.c
describe.c
diff-files.c
diff-index.c
diff-tree.c
diff.c
fast-export.c
fetch-pack.c
fetch.c Merge branch 'maint' 2010-03-20 11:29:19 -07:00
fmt-merge-msg.c
for-each-ref.c Merge branch 'lt/deepen-builtin-source' 2010-03-10 15:25:18 -08:00
fsck.c
gc.c
grep.c Merge branch 'ml/color-grep' 2010-03-20 11:29:36 -07:00
hash-object.c Merge branch 'lt/deepen-builtin-source' 2010-03-10 15:25:18 -08:00
help.c
index-pack.c
init-db.c Merge branch 'sd/init-template' 2010-03-10 15:32:43 -08:00
log.c Merge branch 'sd/format-patch-to' 2010-03-15 00:58:55 -07:00
ls-files.c
ls-remote.c
ls-tree.c
mailinfo.c Merge branch 'lt/deepen-builtin-source' 2010-03-10 15:25:18 -08:00
mailsplit.c Merge branch 'sh/am-keep-cr' 2010-03-10 15:32:34 -08:00
merge-base.c
merge-file.c merge-file --diff3: add a label for ancestor 2010-03-20 20:36:11 -07:00
merge-index.c
merge-ours.c
merge-recursive.c
merge-tree.c
merge.c
mktag.c
mktree.c
mv.c
name-rev.c
notes.c Merge branch 'jh/notes' 2010-03-15 00:52:06 -07:00
pack-objects.c Merge branch 'lt/deepen-builtin-source' 2010-03-10 15:25:18 -08:00
pack-redundant.c
pack-refs.c
patch-id.c
prune-packed.c
prune.c Merge branch 'lt/deepen-builtin-source' 2010-03-10 15:25:18 -08:00
push.c Merge branch 'tc/transport-verbosity' 2010-03-15 00:58:42 -07:00
read-tree.c
receive-pack.c
reflog.c Merge branch 'lt/deepen-builtin-source' 2010-03-10 15:25:18 -08:00
remote.c
replace.c
rerere.c
reset.c Merge branch 'cc/reset-keep' 2010-03-20 11:29:35 -07:00
rev-list.c Merge branch 'lt/deepen-builtin-source' 2010-03-10 15:25:18 -08:00
rev-parse.c Merge branch 'lt/deepen-builtin-source' 2010-03-10 15:25:18 -08:00
revert.c
rm.c
send-pack.c Merge branch 'ld/push-porcelain' 2010-03-15 00:58:24 -07:00
shortlog.c Merge branch 'lt/deepen-builtin-source' 2010-03-10 15:25:18 -08:00
show-branch.c Merge branch 'lt/deepen-builtin-source' 2010-03-10 15:25:18 -08:00
show-ref.c
stripspace.c
symbolic-ref.c
tag.c
tar-tree.c
unpack-file.c
unpack-objects.c
update-index.c
update-ref.c Move 'builtin-*' into a 'builtin/' subdirectory 2010-02-22 14:29:41 -08:00
update-server-info.c
upload-archive.c
var.c Merge branch 'lt/deepen-builtin-source' 2010-03-10 15:25:18 -08:00
verify-pack.c
verify-tag.c
write-tree.c