about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-06-07 19:08:17 -0400
committerDrew DeVault <sir@cmpwn.com>2019-06-07 19:08:17 -0400
commit6b7da37235092f2500de8354030b58d0cc7a25ef (patch)
tree1c3d181e840fd0457c8c03c4b32deeaaf0e411fd
parenta6787fa5d1e0f88b35c981593da0190ef3a0b27f (diff)
downloadaerc-6b7da37235092f2500de8354030b58d0cc7a25ef.tar.gz
Fix hldiff regex for short stats
-rwxr-xr-xcontrib/hldiff3
-rwxr-xr-xcontrib/plaintext1
2 files changed, 3 insertions, 1 deletions
diff --git a/contrib/hldiff b/contrib/hldiff
index 89aa9a2..5d7c422 100755
--- a/contrib/hldiff
+++ b/contrib/hldiff
@@ -1,4 +1,5 @@
 #!/usr/bin/env -S awk -f
+# vim: set ft=awk :
 BEGIN {
 	bright = "\x1B[1m"
 	red = "\x1B[31m"
@@ -13,7 +14,7 @@ BEGIN {
 		if ($0 ~ /^diff /) {
 			hit_diff = 1;
 			print bright $0 reset
-		} else if ($0 ~ /^ .*\|.*(\+|-)/) {
+		} else if ($0 ~ /^.*\|.*(\+|-)/) {
 			left = substr($0, 0, index($0, "|")-1)
 			right = substr($0, index($0, "|"))
 			gsub(/-+/, red "&" reset, right)
diff --git a/contrib/plaintext b/contrib/plaintext
index 1ed97e3..b7feb44 100755
--- a/contrib/plaintext
+++ b/contrib/plaintext
@@ -1,4 +1,5 @@
 #!/usr/bin/env -S awk -f
+# vim: set ft=awk :
 BEGIN {
 	dim = "\x1B[2m"
 	cyan = "\x1B[36m"
912c704c2011d543f18b16712ff15'>ac07e589 ^
60338448 ^
ce2c1efc ^
60338448 ^
60338448 ^
d3a9db3a ^
9a777801 ^
d3a9db3a ^
104e521c ^















ce2c1efc ^
104e521c ^















ec73ed12 ^
104e521c ^
ef31035a ^
104e521c ^

14a38052 ^


d1c9392a ^
e99038ea ^
86351aaf ^












































104e521c ^



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116