tools: Made git_log more useful.

This commit is contained in:
Andrew Hamilton 2018-06-04 07:48:29 +10:00
parent 669bdfd015
commit c62cc22505

View file

@ -610,7 +610,8 @@ def git_blame(path): # FIX: Add to tools_test.py
@deps(deps={"git"}, url="https://git-scm.com/docs/git-log",
executables={"git"})
def git_log(path):
stdout, stderr, returncode = _do_command(["git", "log", "--stat", path])
stdout, stderr, returncode = _do_command(
["git", "log", "--find-renames", "--follow", "--stat", path])
if returncode == 0:
return Status.normal, fill3.Text(stdout)
else: