Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An option to merge different authors into one #88

Open
henno opened this issue Aug 10, 2018 · 6 comments
Open

An option to merge different authors into one #88

henno opened this issue Aug 10, 2018 · 6 comments

Comments

@henno
Copy link

henno commented Aug 10, 2018

+----------------------+---------+---------+-------+--------------------+
| name                 | loc     | commits | files | distribution (%)   |
+----------------------+---------+---------+-------+--------------------+
| rasmus               | 435,183 | 92      | 1,639 | 66.2 / 11.6 / 88.2 |
| CA                   | 23,111  | 37      | 182   |  3.5 /  4.7 /  9.8 |
| Rasmus2              | 7,406   | 148     | 62    |  1.1 / 18.7 /  3.3 |
| Asko                 | 5,407   | 20      | 12    |  0.8 /  2.5 /  0.6 |
| [email protected]        | 3,266   | 203     | 56    |  0.5 / 25.6 /  3.0 |

How would one merge different Rasmuses into single row? --merge Rasmus=rasmus,Rasmus2,[email protected] would be logical option to me

@thoughtpunch
Copy link

parse this table to a CSV (or use the csv output) and merge in a spreadsheet editor. Alternately use the ruby object that generates the report directly and merge by hash keys

@Flowkap
Copy link

Flowkap commented Sep 16, 2019

Just use the git feature .mailmap as git-fame uses git commands it will work :)

@ORESoftware
Copy link

ORESoftware commented Sep 16, 2019

a config file like this would work:

usernames: {
  'rasmus':  ['rasmus', 'rasmus2']
}

users could put it in "$HOME/.gitfame/config.json" since it's unlikely to differ

@StrangeWill
Copy link

Just use the git feature .mailmap as git-fame uses git commands it will work :)

As far as I can tell: this isn't actually working, git check-mailup is returning the correct map, but git fame is still returning the e-mails as not merged, not sure if I'm doing something wrong...

@StrangeWill
Copy link

According to this issue: libgit2/rugged#937 Rugged, the library we seem to use to access libgit2 doesn't actually support .mailmap, so I guess it's manual merge for me.

@oleander
Copy link
Owner

oleander commented Mar 9, 2023

A --merge option would be good. I'm open for PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants