Skip to content

Commit

Permalink
Only include valid extensions in blame output (#95).
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-waldenberg committed Feb 3, 2016
1 parent 2605683 commit f847305
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitinspector/blame.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def __init__(self, hard, useweeks, changes):
row = row.encode("latin-1", "replace")
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)):
blame_command = filter(None, ["git", "blame", "--line-porcelain", "-w"] + \
(["-C", "-C", "-M"] if hard else []) +
Expand Down

0 comments on commit f847305

Please sign in to comment.