On Thu, Sep 7, 2017 at 11:13 AM, Валентин <[email protected]> wrote:
> 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
The shortlog takes most (all?) options that git-log
does, e.g. in git.git:
$ git shortlog -sne --author=Peter
74 Peter Krefting <[email protected]>
43 H. Peter Anvin <[email protected]>
23 Peter Eriksen <[email protected]>
7 Peter Hagervall <[email protected]>
6 Peter Collingbourne <[email protected]>
4 Peter Baumann <[email protected]>
3 Peter Oberndorfer <[email protected]>
3 Peter Valdemar Mørch <[email protected]>
2 Peter Colberg <[email protected]>
2 Peter Eisentraut <[email protected]>
2 Peter Harris <[email protected]>
2 Peter van der Does <[email protected]>
1 Peter Hutterer <[email protected]>
1 Peter Law <[email protected]>
1 Peter Stuge <[email protected]>
1 Peter Wu <[email protected]>
1 Peter van Zetten <[email protected]>
Maybe we'd to state in the man page explicitly that
shortlog is part of the log family hence taking all
log related options.
Thanks,
Stefan