diff options
-rw-r--r-- | range-diff.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/range-diff.c b/range-diff.c index 71883a4b7d..1ecee2c09c 100644 --- a/range-diff.c +++ b/range-diff.c @@ -85,6 +85,7 @@ static int read_patches(const char *range, struct string_list *list) strbuf_addbuf(&buf, &line); strbuf_addstr(&buf, "\n\n"); } else if (starts_with(line.buf, " ")) { + strbuf_rtrim(&line); strbuf_addbuf(&buf, &line); strbuf_addch(&buf, '\n'); } |