summary | shortlog | log | commit | commitdiff | tree
raw | combined (merge: 6b94f1e 93b74bc ea726d0 b33aba5 6b1ddbd)
raw | combined (merge: 6b94f1e 93b74bc ea726d0 b33aba5 6b1ddbd)
author | Junio C Hamano <junkio@cox.net> | |
Sat, 28 Jan 2006 08:16:09 +0000 (00:16 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sat, 28 Jan 2006 08:16:09 +0000 (00:16 -0800) |
1 | 2 | 3 | 4 | 5 | |||
---|---|---|---|---|---|---|---|
diff-tree.c | patch | | diff1 | | diff2 | | diff3 | | diff4 | | diff5 | | blob | history |
diff.h | patch | | diff1 | | diff2 | | diff3 | | diff4 | | diff5 | | blob | history |
rev-list.c | patch | | diff1 | | diff2 | | diff3 | | diff4 | | diff5 | | blob | history |
rev-parse.c | patch | | diff1 | | diff2 | | diff3 | | diff4 | | diff5 | | blob | history |
diff --cc diff-tree.c
index efa2b9476eae679b7f98a4605b07b6637e49de5a,efa2b9476eae679b7f98a4605b07b6637e49de5a,99c580cf75ee15d6bbd65c588360309cc94e9dc4,efa2b9476eae679b7f98a4605b07b6637e49de5a,44bc2381c9cd4ab6e10e8bd8b519b564a1b9014b..6593a6920adcdb81fafad94ba2cf96431e6ceec9
--- 1/diff-tree.c
--- 2/diff-tree.c
--- 3/diff-tree.c
--- 4/diff-tree.c
--- 5/diff-tree.c
+++ b/diff-tree.c
offset = sprintf(this_header, "%s%s ",
header_prefix,
diff_unique_abbrev(commit_sha1, abbrev));
-- -- offset += sprintf(this_header + offset, "(from %s)\n",
-- -- parent_sha1 ?
-- -- diff_unique_abbrev(parent_sha1, abbrev) : "root");
-- - offset += pretty_print_commit(commit_format, msg, len,
++ ++ if (commit_sha1 != parent_sha1)
++ ++ offset += sprintf(this_header + offset, "(from %s)\n",
++ ++ parent_sha1
++ ++ ? diff_unique_abbrev(parent_sha1, abbrev)
++ ++ : "root");
++ ++ else
++ ++ offset += sprintf(this_header + offset, "(from parents)\n");
- offset += pretty_print_commit(commit_format, msg, len,
++++ offset += pretty_print_commit(commit_format, commit, len,
this_header + offset,
---- sizeof(this_header) - offset);
++++ sizeof(this_header) - offset, abbrev);
return this_header;
}
}
/* More than one parent? */
-- -- if (ignore_merges && commit->parents && commit->parents->next)
-- -- return 0;
++ ++ if (commit->parents && commit->parents->next) {
++ ++ if (ignore_merges)
++ ++ return 0;
++ ++ else if (combine_merges) {
- header = generate_header(sha1, sha1,
- commit->buffer);
+++++ header = generate_header(sha1, sha1, commit);
++ ++ return diff_tree_combined_merge(sha1, header,
++ ++ show_empty_combined,
++ ++ dense_combined_merges);
++ ++ }
++ ++ }
for (parents = commit->parents; parents; parents = parents->next) {
struct commit *parent = parents->item;
diff --cc diff.h
Simple merge
diff --cc rev-list.c
Simple merge
diff --cc rev-parse.c
Simple merge