diff options
| author | Mike Vink <59492084+ivi-vink@users.noreply.github.com> | 2025-01-29 14:43:57 +0000 |
|---|---|---|
| committer | Mike Vink <59492084+ivi-vink@users.noreply.github.com> | 2025-01-29 14:43:57 +0000 |
| commit | cbb047fdafcde91870e5a56413c8723d5890418c (patch) | |
| tree | f6cd194129c1d26f6b72a66a358f497e420ded04 /mut/vis/vis-quickfix/gitw | |
| parent | e23e491f69cab90c0e6815fc7c5be5c9bb4c5185 (diff) | |
| parent | 63f6a82c44b63731d8b2812ff74bf0359647efb2 (diff) | |
Merge commit '63f6a82c44b63731d8b2812ff74bf0359647efb2' as 'mut/vis/vis-quickfix'
Diffstat (limited to 'mut/vis/vis-quickfix/gitw')
| -rwxr-xr-x | mut/vis/vis-quickfix/gitw | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mut/vis/vis-quickfix/gitw b/mut/vis/vis-quickfix/gitw new file mode 100755 index 0000000..0f17645 --- /dev/null +++ b/mut/vis/vis-quickfix/gitw @@ -0,0 +1,20 @@ +#!/bin/sh + +git diff --no-prefix --no-ext-diff --relative -U0 | +awk ' +/^\+\+\+ / { + file = $2 + next +} + +file && /^@@/ { + match($0, /\+[0-9]+/) + line = substr($0, RSTART + 1, RLENGTH - 1) + next +} + +line && /^[+-]/ { + printf "%s:%d:%s\n", file, line, $0 + line = 0 +} +' |
