From: Stefan Beller Date: Thu, 07 Sep 2017 19:30:01 GMT Subject: Re: "git shortlog -sn --follow -- " counts all commits to entire repo Message-ID: In-Reply-To: On Thu, Sep 7, 2017 at 11:13 AM, Валентин wrote: > Hi, > > I'll be short as shortlog :) > > "git shortlog -sn -- " > counts all commits to the specified path, as expected. > > "git shortlog -sn --follow -- " > 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 43 H. Peter Anvin 23 Peter Eriksen 7 Peter Hagervall 6 Peter Collingbourne 4 Peter Baumann 3 Peter Oberndorfer 3 Peter Valdemar Mørch 2 Peter Colberg 2 Peter Eisentraut 2 Peter Harris 2 Peter van der Does 1 Peter Hutterer 1 Peter Law 1 Peter Stuge 1 Peter Wu 1 Peter van Zetten 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