Squash commits
[vis-quickfix.git] / gitw
blob0f17645ada651cbfb00a137f3c0c0c63fffc38f6
1 #!/bin/sh
3 git diff --no-prefix --no-ext-diff --relative -U0 |
4 awk '
5 /^\+\+\+ / {
6 file = $2
7 next
10 file && /^@@/ {
11 match($0, /\+[0-9]+/)
12 line = substr($0, RSTART + 1, RLENGTH - 1)
13 next
16 line && /^[+-]/ {
17 printf "%s:%d:%s\n", file, line, $0
18 line = 0