sequencer: teach write_message() to append an optional LF
[gitweb.git] / diff.c
diff --git a/diff.c b/diff.c
index a178ed39bc77988dcc6282d252002f5446305628..be11e4ef2b516aa5348f01a64af8a0d9da96027f 100644 (file)
--- a/diff.c
+++ b/diff.c
@@ -3109,7 +3109,7 @@ static void fill_metainfo(struct strbuf *msg,
                }
                strbuf_addf(msg, "%s%sindex %s..", line_prefix, set,
                            find_unique_abbrev(one->oid.hash, abbrev));
-               strbuf_addstr(msg, find_unique_abbrev(two->oid.hash, abbrev));
+               strbuf_add_unique_abbrev(msg, two->oid.hash, abbrev);
                if (one->mode == two->mode)
                        strbuf_addf(msg, " %06o", one->mode);
                strbuf_addf(msg, "%s\n", reset);