The Case of the Missing Contribution
I love using Rubocop, not
only is it great way to keep things clean, I contributed to the code
This was the pull
request I made:
But, when I look the change in the current file, I only see:
What happened to my contribution??
git blame view
Well, if we look at the section with
git blame, this is what we see:
Yup, my commit is definitely not there. :-(
git log message
I wonder what happened to it? Let’s look up the commit
Welp - being an open source contributor was short as a re-write took
out my contribution.
git log -S to the Rescue??
I learned recently from this Ruby talk
git log -S, which is more powerful than
git blame as it
tracks code over history, not just commit messages.
Let’s see what
git log -S shows in this case when I focus on my main
Oh - interesting, my commit still appears in the history, yes! So that
means I am still contributor. Thank you
git log -S!