author | Carlos Rica <jasampler@gmail.com> | |
Mon, 25 Jun 2007 19:28:01 +0000 (21:28 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 27 Jun 2007 04:55:55 +0000 (21:55 -0700) | ||
commit | 9690c118facbdc4539bbc4921a94ac2edee5efd3 | |
tree | 1e397058df155e284541aec42a79f82afc23af18 | tree | snapshot |
parent | 384f122b7c6dd2b52cc6029afee16560c38850ae | commit | diff |
Fix git-stripspace to process correctly long lines and spaces.
Now the implementation gets more memory to store completely
each line before removing trailing spaces, and does it right
when the last line of the file ends with spaces and no newline
at the end.
Function stripspace needs again to be non-static in order to call
it from "builtin-tag.c" and the upcoming "builtin-commit.c".
A new parameter skip_comments was also added to the stripspace
function to optionally strips every shell #comment from the input,
needed for doing this task on those programs.
Signed-off-by: Carlos Rica <jasampler@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Now the implementation gets more memory to store completely
each line before removing trailing spaces, and does it right
when the last line of the file ends with spaces and no newline
at the end.
Function stripspace needs again to be non-static in order to call
it from "builtin-tag.c" and the upcoming "builtin-commit.c".
A new parameter skip_comments was also added to the stripspace
function to optionally strips every shell #comment from the input,
needed for doing this task on those programs.
Signed-off-by: Carlos Rica <jasampler@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-stripspace.c | diff | blob | history | |
builtin.h | diff | blob | history |