From c62cc22505de28a5cfc1ce080098672d085e9596 Mon Sep 17 00:00:00 2001 From: Andrew Hamilton Date: Mon, 4 Jun 2018 07:48:29 +1000 Subject: [PATCH] tools: Made git_log more useful. --- vigil/tools.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vigil/tools.py b/vigil/tools.py index 78ce72d..60d9994 100644 --- a/vigil/tools.py +++ b/vigil/tools.py @@ -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: