From: Georg Pfuetzenreuter <georg@syscid.com>
To: Gerald Pfeifer <gerald@pfeifer.com>, git@vger.kernel.org
Subject: Re: git shortlog --committer=name is documented, alas not implemented
Date: Sat, 11 May 2024 15:12:26 +0200 [thread overview]
Message-ID: <7c11e562-8476-4b0f-aadd-14695065b80e@syscid.com> (raw)
In-Reply-To: <77e42d15-fcaf-5c1b-3a00-f1f1e3cedfc4@pfeifer.com>
On 5/11/24 14:34, Gerald Pfeifer wrote:
> `man git shortlog` (from git 2.45.0) has the following:
>
> --author=<pattern>, --committer=<pattern>
> Limit the commits output to ones with author/committer header lines
> that match the specified pattern (regular expression). With more
> than one --author=<pattern>, commits whose author matches any of
> the given patterns are chosen (similarly for multiple
> --committer=<pattern>).
>
> Now `git shortlog --author=gerald` works as expected.
>
> However `git shortlog --committer=gerald` results in an error:
>
> error: option `committer' takes no value
>
> This is either a doc bug or an implementation issue?
>
>
> Also, how does one list all commits by a certain committer (as opposed
> to author) then?
>
>
> Thanks,
> Gerald
>
I think this is not implemented for shortlog, and the man page is
confusing. The --author=<pattern>/--committer=<pattern> section in
git-shortlog(1) (Documentation/git-shortlog.txt) is just included from
git-rev-list(1) (Documentation/rev-list-options.txt), but only the
--committer argument documented in the "parent" git-shortlog.txt is valid.
next prev parent reply other threads:[~2024-05-11 13:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-11 12:34 git shortlog --committer=name is documented, alas not implemented Gerald Pfeifer
2024-05-11 13:12 ` Georg Pfuetzenreuter [this message]
2024-05-11 16:17 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7c11e562-8476-4b0f-aadd-14695065b80e@syscid.com \
--to=georg@syscid.com \
--cc=gerald@pfeifer.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.
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 NNTP newsgroup(s).