Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jc/pull-signed-tag'
author
Junio C Hamano
<gitster@pobox.com>
Tue, 20 Dec 2011 21:24:12 +0000
(13:24 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 20 Dec 2011 21:24:12 +0000
(13:24 -0800)
* jc/pull-signed-tag:
commit: do not lose mergetag header when not amending
builtin/commit.c
patch
|
blob
|
history
raw
(from parent 1:
1b048b1
)
diff --git
a/builtin/commit.c
b/builtin/commit.c
index d0f27f931aae51555083ed6192474eaeb8b1694c..626036a179e1476ee28a9f2ff32fedc5b97dc5d0 100644
(file)
--- a/
builtin/commit.c
+++ b/
builtin/commit.c
@@
-1485,8
+1485,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, extra)) {