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

Quick command to count commits

From
Henk <henk_westhuis@hotmail.com>
Date
Jan 6, 2009, 18:51 UTC
Message-ID
<1231267896595-2118851.post@n2.nabble.com>
Hi,

For GitExtensions (windows git ui) I need a command to count all commits. I now use this command: git.cmd rev-list --all --abbrev-commit | wc -l

This works perfect but its very slow in big repositories. Is there a faster way to count the commits?

Henk
-- 
View this message in context: http://n2.nabble.com/Quick-command-to-count-commits-tp2118851p2118851.html
Sent from the git mailing list archive at Nabble.com.
Next: Shawn O. Pearce
Message 1 of 4 in “Quick command to count commits”
  1. HenkJan 6, 2009
  2. Shawn O. PearceJan 6, 2009
  3. Linus TorvaldsJan 6, 2009
  4. Ted PavlicJan 6, 2009

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.