Coding style.
- Moved the git tools into tools.toml.
This commit is contained in:
parent
c62cc22505
commit
3bc142bec6
2 changed files with 14 additions and 22 deletions
|
|
@ -596,28 +596,6 @@ def pil_half(path):
|
||||||
return Status.normal, result
|
return Status.normal, result
|
||||||
|
|
||||||
|
|
||||||
@deps(deps={"git"}, url="https://git-scm.com/docs/git-blame",
|
|
||||||
executables={"git"})
|
|
||||||
def git_blame(path): # FIX: Add to tools_test.py
|
|
||||||
stdout, stderr, returncode = _do_command(
|
|
||||||
["git", "blame", "--show-stats", "--date=short", path])
|
|
||||||
if returncode == 0:
|
|
||||||
return Status.normal, fill3.Text(stdout)
|
|
||||||
else:
|
|
||||||
return Status.not_applicable, fill3.Text("")
|
|
||||||
|
|
||||||
|
|
||||||
@deps(deps={"git"}, url="https://git-scm.com/docs/git-log",
|
|
||||||
executables={"git"})
|
|
||||||
def git_log(path):
|
|
||||||
stdout, stderr, returncode = _do_command(
|
|
||||||
["git", "log", "--find-renames", "--follow", "--stat", path])
|
|
||||||
if returncode == 0:
|
|
||||||
return Status.normal, fill3.Text(stdout)
|
|
||||||
else:
|
|
||||||
return Status.not_applicable, fill3.Text("")
|
|
||||||
|
|
||||||
|
|
||||||
@deps(deps={"golang-golang-x-tools"}, url="golang-golang-x-tools",
|
@deps(deps={"golang-golang-x-tools"}, url="golang-golang-x-tools",
|
||||||
executables={"godoc"})
|
executables={"godoc"})
|
||||||
def godoc(path):
|
def godoc(path):
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,20 @@ tools_for_extensions = [
|
||||||
"aiff", "aifc", "au", "iff", "flv"], ["mediainfo"]],
|
"aiff", "aifc", "au", "iff", "flv"], ["mediainfo"]],
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[git_blame]
|
||||||
|
dependencies = ["git"]
|
||||||
|
url = "https://git-scm.com/docs/git-blame"
|
||||||
|
command = "git blame --show-stats --date=short"
|
||||||
|
success_status = "normal"
|
||||||
|
error_status = "not_applicable"
|
||||||
|
|
||||||
|
[git_log]
|
||||||
|
dependencies = ["git"]
|
||||||
|
url = "https://git-scm.com/docs/git-log"
|
||||||
|
command = "git log --find-renames --follow --stat"
|
||||||
|
success_status = "normal"
|
||||||
|
error_status = "not_applicable"
|
||||||
|
|
||||||
[objdump_headers]
|
[objdump_headers]
|
||||||
dependencies = ["binutils"]
|
dependencies = ["binutils"]
|
||||||
url = "https://en.wikipedia.org/wiki/Objdump"
|
url = "https://en.wikipedia.org/wiki/Objdump"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue