diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2019-01-06 12:00:08 +0000 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2019-01-06 12:43:12 +0000 |
commit | d22395d9e46d321b69086def1088fa10516039de (patch) | |
tree | 33f029cda4a77d6ab31a94380c9e72b1f17f87ba | |
parent | 2a9e81a612e9ef5221c9a4c1554a06f20ea00e8c (diff) |
dgit: clean mode: Refactor -wg parsing to prep for suffixes
This will make it convenient to add new suffix letter(s) to -wg.
No functional change.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rwxr-xr-x | dgit | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -7298,12 +7298,10 @@ sub parseopts () { } elsif (s/^-wn$//s) { push @ropts, $&; $cleanmode = 'none'; - } elsif (s/^-wg$//s) { + } elsif (s/^-wg(f?)$//s) { push @ropts, $&; $cleanmode = 'git'; - } elsif (s/^-wgf$//s) { - push @ropts, $&; - $cleanmode = 'git-ff'; + $cleanmode .= '-ff' if $1; } elsif (s/^-wd(d?)([na]?)$//s) { push @ropts, $&; $cleanmode = 'dpkg-source'; |