mirror of
https://github.com/ejwa/gitinspector.git
synced 2024-11-16 00:28:25 +01:00
Only include valid extensions in blame output (#95).
This commit is contained in:
parent
260568300c
commit
f84730557c
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ class Blame:
|
||||||
row = row.encode("latin-1", "replace")
|
row = row.encode("latin-1", "replace")
|
||||||
row = row.decode("utf-8", "replace").strip("\"").strip("'").strip()
|
row = row.decode("utf-8", "replace").strip("\"").strip("'").strip()
|
||||||
|
|
||||||
if FileDiff.get_extension(row) in extensions.get_located() and not \
|
if FileDiff.get_extension(row) in extensions.get_located() and FileDiff.is_valid_extension(row) and not \
|
||||||
filtering.set_filtered(FileDiff.get_filename(row)):
|
filtering.set_filtered(FileDiff.get_filename(row)):
|
||||||
blame_command = filter(None, ["git", "blame", "--line-porcelain", "-w"] + \
|
blame_command = filter(None, ["git", "blame", "--line-porcelain", "-w"] + \
|
||||||
(["-C", "-C", "-M"] if hard else []) +
|
(["-C", "-C", "-M"] if hard else []) +
|
||||||
|
|
Loading…
Reference in a new issue