I Know in file foo.cpp Following Line has been added some time this year
if(engL.showPrompt()>engL.lessPrompt())
executeScript();
How to find which commit pushed this change?
I Know in file foo.cpp Following Line has been added some time this year
if(engL.showPrompt()>engL.lessPrompt())
executeScript();
How to find which commit pushed this change?
git blame foo.cpp
will show you line by line what commit was the last one to contribute to that line.
If the change is not in the last commit, you can use
git log -S"if(engL.showPrompt()>engL.lessPrompt()) executeScript()" -- path/to/file