On Thu, Sep 7, 2017 at 11:13 AM, Валентин <valiko...@gmail.com> 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 <pe...@softwolves.pp.se>
    43  H. Peter Anvin <h...@zytor.com>
    23  Peter Eriksen <s022...@student.dtu.dk>
     7  Peter Hagervall <ha...@cs.umu.se>
     6  Peter Collingbourne <pe...@pcc.me.uk>
     4  Peter Baumann <waste.mana...@gmx.de>
     3  Peter Oberndorfer <kumbay...@arcor.de>
     3  Peter Valdemar Mørch <pe...@morch.com>
     2  Peter Colberg <pe...@colberg.org>
     2  Peter Eisentraut <pe...@eisentraut.org>
     2  Peter Harris <g...@peter.is-a-geek.org>
     2  Peter van der Does <pe...@avirtualhome.com>
     1  Peter Hutterer <peter.hutte...@who-t.net>
     1  Peter Law <peterjc...@gmail.com>
     1  Peter Stuge <pe...@stuge.se>
     1  Peter Wu <lekenst...@gmail.com>
     1  Peter van Zetten <peter.van.zet...@cgi.com>

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

Reply via email to