I would like to add @since params to开发者_运维技巧 my docblocks of class methods, how I can easily find first commit that have introduced that given method in class (not last modified like with git blame ) ?
Try git log -S'line of code here'
You can enter multiple lines of code between the quotes if you wish, and customise log output in all the usual ways (--oneline, -p etc.), and the command will also work with git diff and git format-patch.
加载中,请稍侯......
精彩评论