Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jc/signed-commit' and 'jc/pull-signed-tag'
author
Junio C Hamano
<gitster@pobox.com>
Thu, 5 Jan 2012 19:00:38 +0000
(11:00 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 5 Jan 2012 19:00:49 +0000
(11:00 -0800)
They both use the extended headers in commit objects, and the former has
necessary infrastructure to show them that is useful to view the result of
the latter.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit.c
patch
|
blob
|
history
raw
(from parent 2:
0c5e70f
)
diff --git
a/builtin/commit.c
b/builtin/commit.c
index 7e8a1cf4e074053a78f2f029e8c03f17c9053bf0..fa41ec8c878a6af63e17b79996148be85dcfccef 100644
(file)
--- a/
builtin/commit.c
+++ b/
builtin/commit.c
@@
-1493,8
+1493,12
@@
int cmd_commit(int argc, const char **argv, const char *prefix)
exit(1);
}
- if (amend)
+ if (amend)
{
extra = read_commit_extra_headers(current_head);
+ } else {
+ struct commit_extra_header **tail = &extra;
+ append_merge_tag_headers(parents, &tail);
+ }
if (commit_tree_extended(sb.buf, active_cache_tree->sha1, parents, sha1,
author_ident.buf, sign_commit, extra)) {