chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Overwrite: Provide --overwrite=VERSION option
[dgit.git]
/
dgit
diff --git
a/dgit
b/dgit
index c0d2183138945b2181e590efeb324092ddeecf48..2bd938e5a1149017413ce7ee2d2015afe6c855e4 100755
(executable)
--- a/
dgit
+++ b/
dgit
@@
-4561,6
+4561,9
@@
sub parseopts () {
} elsif (m/^--no-rm-on-error$/s) {
push @ropts, $_;
$rmonerror = 0;
+ } elsif (m/^--overwrite=(.*)$/s) {
+ push @ropts, $_;
+ $overwrite_version = $1;
} elsif (m/^--(no-)?rm-old-changes$/s) {
push @ropts, $_;
$rmchanges = !$1;