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

Re: [PATCH] ls-files: fix "--format" output of relative paths

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 10, 2023, 17:39 UTC
Message-ID
<xmqq8rg47bgr.fsf@gitster.g>
In-Reply-To
<pull.1465.git.git.1678453473484.gitgitgadget@gmail.com>
"Adam Johnson via GitGitGadget" <gitgitgadget@gmail.com> writes:
Show 6 quoted lines
> From: Adam Johnson <me@adamj.eu>
>
> Fix a bug introduced with the "--format" option in
> ce74de931d, where relative paths were computed
> using the output buffer, which could lead to
> random data in the output.

Good find. Both the explanation and the patch text are crystal clear. Nicely done.

I'll replace "ce74de9313" above with "ce74de93 (ls-files: introduce "--format" option, 2022-07-23)" while queuing, though.

Previous: ZheNing Hu
Message 3 of 3 in “ls-files: fix "--format" output of relative paths”
  1. ls-files: fix "--format" output of relative pathsAdam Johnson via GitGitGadget, Mar 10, 2023
  2. ZheNing HuMar 10, 2023
  3. Junio C HamanoMar 10, 2023

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.