sequencer: do not invent whitespace when transforming OIDs
For commands that do not have an argument, there is no need to append a trailing space at the end of the line. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>maint
parent
66afa24fb3
commit
c7b4d79c7d
|
@ -2586,6 +2586,9 @@ int transform_todos(unsigned flags)
|
||||||
strbuf_addf(&buf, " %s", oid);
|
strbuf_addf(&buf, " %s", oid);
|
||||||
}
|
}
|
||||||
/* add all the rest */
|
/* add all the rest */
|
||||||
|
if (!item->arg_len)
|
||||||
|
strbuf_addch(&buf, '\n');
|
||||||
|
else
|
||||||
strbuf_addf(&buf, " %.*s\n", item->arg_len, item->arg);
|
strbuf_addf(&buf, " %.*s\n", item->arg_len, item->arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue