Skip to content

Commit 198923b

Browse files
committed
Add debug help for hanging OSX
1 parent 353fb72 commit 198923b

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,37 @@ source "%val{runtime}/rc/tools/git.kak"
44

55
define-command run %{
66
try %{
7+
echo -end-of-line -to-file /dev/stderr %sh{ ls -l fifo 2>&1 }
78
git init
89
git add
910
git commit --message 'initial commit'
1011
execute-keys %{2gIchanged <esc>}
12+
echo -end-of-line -to-file /dev/stderr "writing"
1113
write
1214
git commit --all --message 'changed line 2'
15+
echo -end-of-line -to-file /dev/stderr "commit done"
1316
# Show the commit, jumping to the new version of line 2.
1417
git blame-jump
18+
echo -end-of-line -to-file /dev/stderr "blame done"
1519
hook -once buffer BufCloseFifo .* %{
20+
echo -end-of-line -to-file /dev/stderr "buf close fifo"
1621
evaluate-commands -client client0 %{
1722
# We've jumped to the new version of line 2. Move to the old
1823
# version so we can annotate the old version of the file.
1924
execute-keys k
25+
echo -end-of-line -to-file /dev/stderr "pre 2nd blame"
2026
git blame
27+
echo -end-of-line -to-file /dev/stderr "post 2nd blame"
2128
hook -once buffer BufCloseFifo .* %{
22-
execute-keys -client client0 x
2329
# Wait for a redraw before reporting completion.
2430
hook -once buffer NormalIdle .* %{
31+
echo -end-of-line -to-file /dev/stderr "NormalIdle hook"
2532
echo -to-file fifo
2633
}
34+
execute-keys -client client0 x
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)