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

Re: [PATCH resend] status: make coloring of "-z --short" consistent

From
Jeff King <peff@peff.net>
Date
Oct 18, 2025, 09:50 UTC
Message-ID
<20251018095026.GD1060824@coredump.intra.peff.net>
In-Reply-To
<5y1mZIuIa13McbaoEhdBCm8CNMyjkJ6UE39s0kB-rYSmAmuPFnAof5fNVatncDUXIRoMvlpdbId3nFn2dnwU8NwNk78XArUYCf3RncWHu6c=@protonmail.com>
On Sat, Oct 18, 2025 at 06:01:07AM +0000, Langbart wrote:
> Thanks for the patch. Agreed, Retaining the colors is very useful, 
> allowing me to pipe the colored output to other tools.
> 
> git -c color.status=always status --short -z | fzf --read0

Thanks, my intuition is that something like that could be useful, but I didn't have a concrete example. That one is perfect.

(If anybody tries the above, note that I needed to add "--ansi" for it to look nice in fzf. But I don't usually use that program, so I imagine there's a way to configure it to do that by default).

-Peff
Previous: LangbartNext: Langbart
Message 6 of 7 in “Git Status Short Output Color Inconsistency with -z Flag”
  1. LangbartOct 5, 2025
  2. Jeff KingOct 7, 2025
  3. status: make coloring of "-z --short" consistentJeff King, Oct 7, 2025
  4. status: make coloring of "-z --short" consistentJeff King, Oct 17, 2025
  5. LangbartOct 18, 2025
  6. Jeff KingOct 18, 2025
  7. LangbartOct 18, 2025

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.