summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 332de7a)
raw | patch | inline | side by side (parent: 332de7a)
author | Jeff King <peff@peff.net> | |
Mon, 5 Dec 2011 22:29:15 +0000 (17:29 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 5 Dec 2011 23:04:38 +0000 (15:04 -0800) |
The comment on top of stripspace() claims that the buffer
will no longer be NUL-terminated. However, this has not been
the case at least since the move to using strbuf in 2007.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
will no longer be NUL-terminated. However, this has not been
the case at least since the move to using strbuf in 2007.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/stripspace.c | patch | blob | history |
diff --git a/builtin/stripspace.c b/builtin/stripspace.c
index 4d3b93fedb5f2eca68edca15ca1e10cb60176d36..1288ffcc52530f8ef9561acd2eb2ec5322c9e230 100644 (file)
--- a/builtin/stripspace.c
+++ b/builtin/stripspace.c
* Remove empty lines from the beginning and end
* and also trailing spaces from every line.
*
- * Note that the buffer will not be NUL-terminated.
- *
* Turn multiple consecutive empty lines between paragraphs
* into just one empty line.
*