tools: Made git_log more useful.
This commit is contained in:
parent
669bdfd015
commit
c62cc22505
1 changed files with 2 additions and 1 deletions
|
|
@ -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",
|
@deps(deps={"git"}, url="https://git-scm.com/docs/git-log",
|
||||||
executables={"git"})
|
executables={"git"})
|
||||||
def git_log(path):
|
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:
|
if returncode == 0:
|
||||||
return Status.normal, fill3.Text(stdout)
|
return Status.normal, fill3.Text(stdout)
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue