Re: [PATCH v10 2/3] interpret-trailers: add own-identity option

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Junio C Hamano <gitster@xxxxxxxxx> 于2021年3月19日周五 下午11:36写道:
>
> ZheNing Hu <adlternative@xxxxxxxxx> writes:
>
> > If `--own-identity` is mouthful, is there a better name?
>
> I originally had "perhaps XXXX?" in the message you are responding
> to, but I hoped that the message, especially the examples at the
> end, would be sufficient to make you realize that the option itself
> is not such a great idea (an additional ":@gitster" in whatever
> syntax used would be even shorter than "--own-identity", and
> obviously more flexible in that it can name other people).
>
> If you really want to have this option, perhaps call it "--self"?  I
> still do not think it is a good idea, though.

Fine, If this option is really not particularly useful, I am willing
to give it up.

I am looking for how to extract each author or committer from the log.
I just know I can use:

$ git log --pretty="%an %ae" | sort | uniq

get all unique author <email> from a git repo.
Is there any function in the source code of git to get them?

I notice Ævar Arnfjörð Bjarmason mentioned `.mailmap`, I have seen the
 `.mailmap` under git repo. Would it be better to extract the author
or committer
 from  the .mailmap than to extract it from git log?
If so, the operation of the trailer may depend on the contents of `.mailmap`.
If there is no `.mailmap` in the user git repo, then the identity in the trailer
cannot be parsed.

Thanks.




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux