summaryrefslogtreecommitdiff
path: root/builtin/stripspace.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2011-12-05 17:29:15 -0500
committerJunio C Hamano <gitster@pobox.com>2011-12-05 15:04:38 -0800
commitc2857fb8b7903b2bba9217310971e5282549174d (patch)
treef07c56d103e0fcd4fc3d1b78f5c5c3f4588f944e /builtin/stripspace.c
parent332de7a1c89a579f15ca41c11e606007cc32fdbf (diff)
downloadgit-c2857fb8b7903b2bba9217310971e5282549174d.tar.gz
stripspace: fix outdated comment
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>
Diffstat (limited to 'builtin/stripspace.c')
-rw-r--r--builtin/stripspace.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/builtin/stripspace.c b/builtin/stripspace.c
index 4d3b93fedb..1288ffcc52 100644
--- a/builtin/stripspace.c
+++ b/builtin/stripspace.c
@@ -22,8 +22,6 @@ static size_t cleanup(char *line, size_t len)
* 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.
*