We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dadeb95 + 4eb4304 commit bf4fda4Copy full SHA for bf4fda4
git-blame.py
@@ -115,7 +115,7 @@ def __init__(self, view):
115
@functools.lru_cache(128, False)
116
def get_blame(self, line, path):
117
return subprocess.check_output(
118
- ["git", "blame", "--minimal", "-w", "-L {0},{0}".format(line), path],
+ ["git", "blame", "--minimal", "-w", "-L {0},{0}".format(line), os.path.basename(path)],
119
cwd=os.path.dirname(os.path.realpath(path)),
120
startupinfo=si,
121
stderr=subprocess.STDOUT
@@ -265,7 +265,7 @@ def run(self, edit):
265
def get_blame(self, path):
266
267
# The option --show-name is necessary to force file name display.
268
- ["git", "blame", "--show-name", "--minimal", "-w", path],
+ ["git", "blame", "--show-name", "--minimal", "-w", os.path.basename(path)],
269
270
271
0 commit comments