No, it not the answer I was after, and it doesn't help either :) I already did know that (in more or less details); my question was more along the lines of: If you're able to suppress the diff when file rename/move is detected in a PR/commit, then why is the Contributions page not being "aware" of that? So, there is a logic to figure it out, obviously - it's not like it's "ok we can figure out just additions and deletions, but nothing more". GitHub is able to tell (with very high probability) when something has been moved elsewhere, but it's not consistent. You are developer yourself; so, given the ability of one of your sub-systems (Module A) to detect when Event A happens, then you'd probably be more than capable of making another sub-system (Module B) being aware of that event's existence, and then use it to tweak the Module B's output based on Event A's occurences and their properties. Right? :) Of course those 67k additions were not all "true additions", but they were more real than the current figure; they used to provide some sense, now they provide none. Anyway, just wanted to bring it up in case someone is watching. Probably the change would not be trivial to make - even if anyone "above" cared that much :D Edit: God, these smileys are terrible!
... View more
Hello, I'm having a question/request regarding the Contributions page in a repository, and the way that renamed files appear in there. I've created a demo repository with 2 commits to demonstrate this: First commit, adding a README file with 50 lines: https://github.com/maksimovic/contributions-demo/commit/4469bb4504289cddabbbd1517a1acb6dc5c092b2 Second commit, renamed the file, (note that it says "0 deletions & 0 additions"): https://github.com/maksimovic/contributions-demo/commit/4bf98ba6e9bd478bc277258f9e497cbf2a12b059 Now, look at the contributions page, which says "100++ and 50--": https://github.com/maksimovic/contributions-demo/graphs/contributors Now, this may not seem to be significant at all, but the way this works can totally screw up contributions in large repositories where larger changes of this type can happen. For example, recently I've moved a lot of files from one place to another in a huge monolith repository, as part of a bigger refactoring process. Before that, my contributions were around 67k "++", and those were real additions. However, after these refactoring changes went to the master branch, my additions went up to 154k "++" (deletions increased by the same amount as well). Is there any way for such changes not to appear like this?
... View more