author | Junio C Hamano <junkio@cox.net> | |
Fri, 26 Jan 2007 10:26:04 +0000 (02:26 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 26 Jan 2007 10:26:04 +0000 (02:26 -0800) | ||
commit | 8ac65937d032ad3e4bda1d7d6a8b924a65a01fb4 | |
tree | 19cbfff3bee291287b79c004e3779083c822b4ab | tree | snapshot |
parent | 8a8169c0398ff9996216381d7688c2ba2d007050 | commit | diff |
Make sure we do not write bogus reflog entries.
The file format dictates that entries are LF terminated so
the message cannot have one in it. Chomp the message to make
sure it only has a single line if necessary, while removing the
leading whitespace.
Signed-off-by: Junio C Hamano <junkio@cox.net>
The file format dictates that entries are LF terminated so
the message cannot have one in it. Chomp the message to make
sure it only has a single line if necessary, while removing the
leading whitespace.
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-update-ref.c | diff | blob | history | |
refs.c | diff | blob | history |