git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Валентин <valiko.ua@gmail.com>
To: git@vger.kernel.org
Subject: "git shortlog -sn --follow -- <path>" counts all commits to entire repo
Date: Thu, 7 Sep 2017 21:13:27 +0300	[thread overview]
Message-ID: <CAJrPYn8_n1JD3hL1LSAVz2Khs=dZRVaZ-gpru5AV+ottv5WfAw@mail.gmail.com> (raw)

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

             reply	other threads:[~2017-09-07 18:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-07 18:13 Валентин [this message]
2017-09-07 19:30 ` "git shortlog -sn --follow -- <path>" counts all commits to entire repo Stefan Beller
2017-09-08  5:10   ` Jeff King
2017-09-08  6:38     ` Junio C Hamano
2017-09-08  7:49       ` Jeff King
2017-09-08 17:37         ` Junio C Hamano
2017-09-09  6:52           ` Jeff King
2017-09-10  7:36             ` Junio C Hamano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJrPYn8_n1JD3hL1LSAVz2Khs=dZRVaZ-gpru5AV+ottv5WfAw@mail.gmail.com' \
    --to=valiko.ua@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).