list changes of specific line(s) with git

If you only need to know who was the last person to change the line, git blame will do To see who modified the code on line # 85 and next 5 lines git blame ${path-to-the-file} -L 85,+5 output would look like this f1f66980053 (Naoko 2019-02-25 17:32:25 -0700 85) text = re.sub(r'{([^\n]+?)}', r'{0[\1]}', template["text"]) 50ccaf0f3b8 (Naoko 2019-02-16 10:44:54 -0700 86) template["text"] = text.format(template_vars) f373fd241db (Tom Bocklisch 2018-07-10 14:33:18 +0200 87) except KeyError as e: f373fd241db (Tom Bocklisch 2018-07-10 14:33:18 +0200 88) logger.exception( 390792a0008 (Tom Bocklisch 2018-11-16 12:51:21 +0100 89) "Failed to fill utterance template '{}'. " But often the above information is not good enough. ...

March 19, 2019 · 2 min · Naoko Reeves