News for hackers. Stuff that matters.
Re:How to take credit for someone else's work on GitHub by arraypad on Monday February 28, 2022 @02:40PM (#30504127)
In this case I think you could use a .mailmap [1] in the repo to associate the old email addresses with current, verified addresses.

[1] https://git-scm.com/docs/gitmailmap

Re:How to take credit for someone else's work on GitHub by nynyny7 on Monday February 28, 2022 @03:16PM (#30504565)
Interesting. One never stops learning new git features...

However, while this works for git (i.e., maps old address to new address in "git log" for example), GitHub does not seem to honor this file.

Re:How to take credit for someone else's work on GitHub by trulyme on Monday February 28, 2022 @04:09PM (#30505162)
Well, yes, but maybe they should? It doesn't seem like a huge feature...
Re:How to take credit for someone else's work on GitHub by leni536 on Monday February 28, 2022 @05:29PM (#30506055)
Now which commit's mailmap file should be used for the association? Whatever is on the "default" branch currently?
Re:How to take credit for someone else's work on GitHub by Aeolun on Monday February 28, 2022 @07:05PM (#30507090)
Whatever is in the branch you are looking at? Seems fairly straightforward.
Re:How to take credit for someone else's work on GitHub by remram on Monday February 28, 2022 @09:24PM (#30508497)
Viewing a specific commit or viewing the repositories' statistics ("insights" tab) both have no attached branch.
Re:How to take credit for someone else's work on GitHub by Cthulhu_ on Tuesday March 01, 2022 @03:55AM (#30511439)
in Github or in Git itself? While possible, I don't believe there's many floating commits around.

The other issue of course is that at this point in time, there would not be a .mailmap. Of course, github can then fall back to a .mailmap file in the latest commit of the main branch.

Re:How to take credit for someone else's work on GitHub by remram on Tuesday March 01, 2022 @09:15AM (#30514368)
Commits are not usually floating but are very commonly in more than one branch.
Re:How to take credit for someone else's work on GitHub by angus-g on Monday February 28, 2022 @04:24PM (#30505329)
What about if somebody clones a repo, then adds a .mailmap pointing all the addresses in the history to their own?
Re:How to take credit for someone else's work on GitHub by trulyme on Monday February 28, 2022 @04:32PM (#30505415)
If somebody clones the repo they can even rewrite history. But that is not the same as them being able to claim the ownership of a commit in the original repo.
Re:How to take credit for someone else's work on GitHub by teawrecks on Monday February 28, 2022 @06:58PM (#30507000)
Then in their clone, they made all the commits. But who cares about their clone?
Re:How to take credit for someone else's work on GitHub by Kwpolska on Monday February 28, 2022 @03:22PM (#30504630)
GitHub bases the association of commits to user accounts on the list of e-mail addresses configured in the user’s profile: https://github.com/settings/emails