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

Re: Make "git log --count" work like "git rev-list"

From
Stefan Beller <sbeller@google.com>
Date
Jan 9, 2019, 20:14 UTC
Message-ID
<CAGZ79kan3yavtQOPAHUdkjTXeHpCGPb-igtNMPXjS6GCxOCS+Q@mail.gmail.com>
In-Reply-To
<20190109195428.GA12645@sigill.intra.peff.net>
> Unfortunately I'm not sure of an easy fix. We'd have to tell the log
> code "figure out if you're going to show the commit, but don't actually
> show anything", which means respecting the count flag virtually
> everywhere that would produce output.

This is (partially) solved for commit parts already, e6e045f803 (diff.c: buffer all output if asked to, 2017-06-29) but we'd have to extend that to revision walking?

Previous: Jeff KingNext: Junio C Hamano
Message 5 of 7 in “Make "git log --count" work like "git rev-list"”
  1. Linus TorvaldsJan 5, 2019
  2. Stefan BellerJan 9, 2019
  3. Linus TorvaldsJan 9, 2019
  4. Jeff KingJan 9, 2019
  5. Stefan BellerJan 9, 2019
  6. Junio C HamanoJan 10, 2019
  7. Jeff KingJan 11, 2019

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.