Currently, if a commit message doesn't end with a new line the last line in the message is omitted from the output. The following patch fixes this bug. Signed-Off-By: Fredrik Kuivinen <freku045@student.liu.se> --- diff --git a/commit.c b/commit.c --- a/commit.c +++ b/commit.c @@ -202,11 +202,11 @@ static int get_one_line(const char *msg, while (len--) { char c = *msg++; + if (!c) + break; ret++; if (c == '\n') break; - if (!c) - return 0; } return ret; } - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.htmlReceived on Thu Jun 30 07:30:35 2005
This archive was generated by hypermail 2.1.8 : 2005-06-30 07:30:41 EST