git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH, v4] git-tag: introduce --cleanup option

From
Jeff King <peff@peff.net>
Date
Dec 5, 2011, 22:29 UTC
Message-ID
<20111205222915.GA7644@sigill.intra.peff.net>
In-Reply-To
<20111205222724.GA7603@sigill.intra.peff.net>
On Mon, Dec 05, 2011 at 05:27:24PM -0500, Jeff King wrote:
> I also looked at factoring out the "which cleanup mode to select" logic
> from builtin/commit.c, but it turned out to just make things harder to
> follow.
While I was doing that, I also noticed this minor fix:
-- >8 --
Subject: [PATCH] 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>
---
 builtin/stripspace.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/builtin/stripspace.c b/builtin/stripspace.c
index 4d3b93f..1288ffc 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.
  *
-- 
1.7.8.rc4.4.g884ec
Previous: Jeff King
Message 7 of 7 in “git-tag: introduce --cleanup option”
  1. git-tag: introduce --cleanup optionKirill A. Shutemov, Dec 4, 2011
  2. Jeff KingDec 5, 2011
  3. Junio C HamanoDec 5, 2011
  4. Junio C HamanoDec 5, 2011
  5. Kirill A. ShutemovDec 7, 2011
  6. Jeff KingDec 5, 2011
  7. Jeff KingDec 5, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.