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

"git shortlog -sn --follow -- <path>" counts all commits to entire repo

From
ВВалентин <valiko.ua@gmail.com>
Date
Sep 7, 2017, 18:13 UTC
Message-ID
<CAJrPYn8_n1JD3hL1LSAVz2Khs=dZRVaZ-gpru5AV+ottv5WfAw@mail.gmail.com>
Hi,
I'll be short as shortlog :)

"git shortlog -sn -- <path>" counts all commits to the specified path, as expected.

"git shortlog -sn --follow -- <path>" counts all commits to the entire repo, which looks like a bug.

"--follow" switch is not listed on https://git-scm.com/docs/git-shortlog so maybe it's not supported. In this case I would expect error message.

Tried the following versions: "git version 2.14.1.windows.1" on Windows 7 "git version 2.7.4" on Ubuntu 16.04

Thanks, Valentine

Next: Stefan Beller
Message 1 of 8 in “"git shortlog -sn --follow -- <path>" counts all commits to entire repo”
  1. ВалентинSep 7, 2017
  2. Stefan BellerSep 7, 2017
  3. Jeff KingSep 8, 2017
  4. Junio C HamanoSep 8, 2017
  5. Jeff KingSep 8, 2017
  6. Junio C HamanoSep 8, 2017
  7. Jeff KingSep 9, 2017
  8. Junio C HamanoSep 10, 2017

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.