What is the easiest way to find out when a change has happened?
What I'm interested in is, when was a specific line added and why?
When I use git blame (generally inside Sublime Text), it points me to a commit when the line has changed. I use git show -p to see what happened in that commit, and I generally see that the line was not added, but it was moved or tweaked, but the essence stayed the same. So then I check out a previous commit and start all over again.
Is there a faster way?
It might be a good idea to log all the commits (optionally with -p flag indicating that it should display the -p-atch) where a specific file changed: git log -- .
But other than that, it seems to be tricky to make git track changes to a specific line (which might have different numbers in each commit.
Closing for now.
What is the easiest way to find out when a change has happened? What I'm interested in is, when was a specific line added and why? When I use
git blame
(generally inside Sublime Text), it points me to a commit when the line has changed. I usegit show -p
to see what happened in that commit, and I generally see that the line was not added, but it was moved or tweaked, but the essence stayed the same. So then I check out a previous commit and start all over again. Is there a faster way?