git.shiar.nl
/
barcat.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ignore SIGINT so partial input is shown
[barcat.git]
/
graph
diff --git
a/graph
b/graph
index 14b717310a819c4272fd1cf4911f5ff6432feea5..d317df5e7f848922e07986cd2fb558ca8973a49c 100755
(executable)
--- a/
graph
+++ b/
graph
@@
-31,6
+31,8
@@
if (defined $opt{follow}) {
alarm $opt{follow};
}
+$SIG{INT} = 'IGNORE'; # continue after assumed eof
+
my (@lines, @values);
while (readline) {
chomp;
@@
-48,6
+50,8
@@
while (readline) {
}
@lines or exit;
+$SIG{INT} = 'DEFAULT';
+
sub show_lines {
my @order = sort { $b <=> $a } grep { length } @values;