jakewilliami / gl

A Git log command line utility
MIT License
1 stars 0 forks source link

Better handling for edge-cases in -A/-S #26

Open jakewilliami opened 2 weeks ago

jakewilliami commented 2 weeks ago

E.g., users with zero commits (did they do merges but we're not counting them? That's likely the case, but I'm not sure).

$ git clone -b master git://git.sv.gnu.org/emacs.git
...

$ cd emacs

$ gl -V
gl 2.5.4

$ gl -r
emacs

$ gl -A
Author                                             Commits
...
helmut@249.130.205.92.host.secureserver.net              0
alastair@girtby.net                                      0
jorissteyn@gmail.com                                     0
zshaftel@gmail.com                                       0
artagnon@gmail.com                                       0
zappo@users.sourceforge.net                              0
xscript@users.sourceforge.net                            0
Zappo@Gnu.Org                                            0
Dengste@Eml.Cc                                           0
henrik.enberg@telia.com                                  0
ultrageek.lloyd@gmail.com                                0
Martin.Stein.Math@gmx.net                                0
safanaj@users.sourceforge.net                            0
edward.steere@gmail.com                                  0

Also, in the Emacs repo, there's a commit from ten years ago without the user's email (see #22). We should handle this too.

jakewilliami commented 1 week ago

Also

$ git clone https://github.com/tsoding/sowon.git
...

$ cd sowon

$ gl -A
...

This shows a blank line. We should use their commit name if no email is found.