Skip to content

Commit 7cb150e

Browse files
committed
Add debug help for hanging OSX
1 parent 353fb72 commit 7cb150e

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

test/tools/git/blame-in-diff/rc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,33 @@ define-command run %{
88
git add
99
git commit --message 'initial commit'
1010
execute-keys %{2gIchanged <esc>}
11+
echo -end-of-line -to-file /dev/stderr "writing"
1112
write
1213
git commit --all --message 'changed line 2'
14+
echo -end-of-line -to-file /dev/stderr "commit done"
1315
# Show the commit, jumping to the new version of line 2.
1416
git blame-jump
17+
echo -end-of-line -to-file /dev/stderr "blame done"
1518
hook -once buffer BufCloseFifo .* %{
19+
echo -end-of-line -to-file /dev/stderr "buf close fifo"
1620
evaluate-commands -client client0 %{
1721
# We've jumped to the new version of line 2. Move to the old
1822
# version so we can annotate the old version of the file.
1923
execute-keys k
24+
echo -end-of-line -to-file /dev/stderr "pre 2nd blame"
2025
git blame
26+
echo -end-of-line -to-file /dev/stderr "post 2nd blame"
2127
hook -once buffer BufCloseFifo .* %{
28+
echo -end-of-line -to-file /dev/stderr "in hook"
2229
execute-keys -client client0 x
2330
# Wait for a redraw before reporting completion.
2431
hook -once buffer NormalIdle .* %{
32+
echo -end-of-line -to-file /dev/stderr "NormalIdle hook"
2533
echo -to-file fifo
2634
}
35+
echo -end-of-line -to-file /dev/stderr "NormalIdle install"
2736
}
37+
echo -end-of-line -to-file /dev/stderr "hook installed"
2838
}
2939
}
3040
} catch %{
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
mkfifo fifo 2>/dev/null
2+
echo waiting for fifo
23
cat fifo
4+
echo fifo waiting done
35
# We should have jumped to the old version of line 2, assert on kak_selection.

0 commit comments

Comments
 (0)