git.shiar.nl
/
barcat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ecef4e2
)
describe -u, rename to --unmodified
author
Mischa POSLAWSKY
<perl@shiar.org>
Thu, 5 Sep 2019 21:46:57 +0000
(23:46 +0200)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Thu, 5 Sep 2019 21:56:49 +0000
(23:56 +0200)
graph
patch
|
blob
|
history
diff --git
a/graph
b/graph
index 8eb0493476a48d9d1301fa59d75ab48fff28d924..eaafb764d387a5f65514ed3fcb017e8763e62840 100755
(executable)
--- a/
graph
+++ b/
graph
@@
-17,7
+17,7
@@
GetOptions(\my %opt,
'follow|f:i',
'trim|length|l=i',
'markers|m=s',
'follow|f:i',
'trim|length|l=i',
'markers|m=s',
- 'un
clean
|u!',
+ 'un
modified
|u!',
'width|w=i',
'usage|h' => sub { podexit() },
'help' => sub { podexit(-verbose => 2) },
'width|w=i',
'usage|h' => sub { podexit() },
'help' => sub { podexit(-verbose => 2) },
@@
-40,7
+40,7
@@
$SIG{INT} = 'IGNORE'; # continue after assumed eof
my (@lines, @values);
while (readline) {
chomp;
my (@lines, @values);
while (readline) {
chomp;
- s/^\h*// unless $opt{un
clean
};
+ s/^\h*// unless $opt{un
modified
};
push @values, s/^ ( \h* -? [0-9]* \.? [0-9]+ |)//x && $1;
if (defined $opt{trim}) {
my $trimpos = abs $opt{trim};
push @values, s/^ ( \h* -? [0-9]* \.? [0-9]+ |)//x && $1;
if (defined $opt{trim}) {
my $trimpos = abs $opt{trim};
@@
-185,7
+185,10
@@
or 68% of all entries.
=back
=back
-=item -u, --unclean
+=item -u, --unmodified
+
+Do not strip leading whitespace.
+Keep original value alignment, which may be significant in some programs.
=item -w, --width=<columns>
=item -w, --width=<columns>