repo.or.cz
/
vis-quickfix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Squash commits
[vis-quickfix.git]
/
gitw
blob
0f17645ada651cbfb00a137f3c0c0c63fffc38f6
1
#!/bin/sh
2
3
git
diff
--no-prefix --no-ext-diff --relative -U0
|
4
awk
'
5
/^\+\+\+ / {
6
file =
$2
7
next
8
}
9
10
file && /^@@/ {
11
match(
$0
, /\+[0-9]+/)
12
line = substr(
$0
, RSTART + 1, RLENGTH - 1)
13
next
14
}
15
16
line && /^[+-]/ {
17
printf "%s:%d:%s
\n
", file, line,
$0
18
line = 0
19
}
20
'