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

Re: How to get status-like short format for old commits?

From
Jeff King <peff@peff.net>
Date
Mar 26, 2012, 20:14 UTC
Message-ID
<20120326201456.GC13098@sigill.intra.peff.net>
In-Reply-To
<CAA01CsppeF8r_hDhuE7snExxJ6zaWdt5Znu82ZzDmyNMzWRDfA@mail.gmail.com>
On Mon, Mar 26, 2012 at 08:53:45PM +0200, Piotr Krukowiecki wrote:
> [log --name-status]
> not so nice as status, but still ok.

Yeah, the code to print the verbose "modified: foo.c" style is specific to status. We could refactor it to be a new generic diff output type, which would not be that hard. In practice, though, I think people choose either "--stat --summary" if they want to show to a person (it's a superset of what status shows, because it also contains the number of lines changed for each file), or "--raw" if they need something machine-readable.

Does one of those work for you? If not, it might be a fun and relatively simple exercise to create a --verbose-name-status that looks like the output of "git status" (you could also do it by post-processing --name-status output, but that is less fun and more hacky :) ).

-Peff
Previous: Piotr Krukowiecki
Message 4 of 4 in “How to get status-like short format for old commits?”
  1. Piotr KrukowieckiMar 26, 2012
  2. KevinMar 26, 2012
  3. Piotr KrukowieckiMar 26, 2012
  4. Jeff KingMar 26, 2012

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.