summaryrefslogtreecommitdiff
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorBrandon Casey <drafnel@gmail.com>2013-02-12 10:17:35 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-02-12 19:17:10 (GMT)
commitbab4d1097c8be7d688a53b992232063dbf300fd4 (patch)
tree0d72cfb6163023a90ae96f009f1a4913335e8727 /builtin/commit.c
parentb971e04f54e73a5a2af54ad62540273bb90ee7bb (diff)
downloadgit-bab4d1097c8be7d688a53b992232063dbf300fd4.zip
git-bab4d1097c8be7d688a53b992232063dbf300fd4.tar.gz
git-bab4d1097c8be7d688a53b992232063dbf300fd4.tar.bz2
sequencer.c: teach append_signoff how to detect duplicate s-o-b
Teach append_signoff how to detect a duplicate s-o-b in the commit footer. This is in preparation to unify the append_signoff implementations in log-tree.c and sequencer.c. Fixes test in t3511. Signed-off-by: Brandon Casey <bcasey@nvidia.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
-rw-r--r--builtin/commit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/commit.c b/builtin/commit.c
index 1dd2ec5..7b9e2ac 100644
--- a/builtin/commit.c
+++ b/builtin/commit.c
@@ -700,7 +700,7 @@ static int prepare_to_commit(const char *index_file, const char *prefix,
previous = eol;
}
- append_signoff(&sb, ignore_footer);
+ append_signoff(&sb, ignore_footer, 0);
}
if (fwrite(sb.buf, 1, sb.len, s->fp) < sb.len)