diff options
| author | Johannes Altmanninger <aclopte@gmail.com> | 2025-03-23 16:06:23 +0100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2025-03-24 08:21:21 +1100 |
| commit | 796ccc45f0bcabb31c1ac5df36d2ced082ad294d (patch) | |
| tree | a73bc7994deb58a64fa2967a72edc6f9fc04e69f /src/debug.cc | |
| parent | eee362087dab83df7ddd7302f9182097642497a8 (diff) | |
rc git: fix blaming when in subdirectory
When $PWD is different from $(git rev-parse --show-toplevel, recursive blaming is broken.
For example (assuming k moves to a delted line):
kak -e 'cd src; edit main.cc; git blame-jump; hook -once g NormalIdle .* %{ exec k; git blame-jump }'
Fix this by
1. computing the correct path from diff-parse (we already require
the git command be run in a git directory).
2. passing absolute paths to the recursive "git blame" invocations
Diffstat (limited to 'src/debug.cc')
0 files changed, 0 insertions, 0 deletions
