git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Inconsistent names in `git shortlog`
@ 2023-04-25  0:00 Blyxyas
  2023-04-25  0:40 ` brian m. carlson
  2023-04-25  6:52 ` Jeff King
  0 siblings, 2 replies; 4+ messages in thread
From: Blyxyas @ 2023-04-25  0:00 UTC (permalink / raw)
  To: git

`git shortlog` (specifically talking about `git shortlog -sn`, but
applies to the whole subcommand) produces a list of names based on the
contributors to a Git repository.
But it turns out that the output of the shortlog is very inconsistent
in that sometimes it uses the username and other times the full name.
This can happen even in the same repo.

This isn't a big deal on its own, but there are some external tools
(like thanks.rust-lang.org) that use the output of `git shortlog` to
thank contributors, and it has some cases of people going just by
their first name (no surnames), or people appearing multiple times,
once with their username and one with their real name.

There should be a convention established. I would personally prefer
using usernames, as the huge impact of Github would mean that it's
easier to go to their profile just by copy-pasting their shortlog
name. Maybe add a `--realname` / `-r` flag to the command to show the
real names and show usernames by default?

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-04-25 15:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-25  0:00 Inconsistent names in `git shortlog` Blyxyas
2023-04-25  0:40 ` brian m. carlson
2023-04-25  6:52 ` Jeff King
2023-04-25 15:46   ` Junio C Hamano

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).