"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