summaryrefslogtreecommitdiff
path: root/dgit
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2014-10-27 17:44:42 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2014-11-05 18:02:50 +0000
commitece82c50afff320eaf1cd09ba540e10f24984b60 (patch)
tree02dfab72c5365ddce4c8914e443f987ac3776a82 /dgit
parentfbb2767a1a26503fd930aed3240209dd0ea3a541 (diff)
Break out commit_admin (nfc)
Diffstat (limited to 'dgit')
-rwxr-xr-xdgit10
1 files changed, 7 insertions, 3 deletions
diff --git a/dgit b/dgit
index e74445b..9d8f9d4 100755
--- a/dgit
+++ b/dgit
@@ -1366,6 +1366,12 @@ sub check_not_dirty () {
}
}
+sub commit_admin ($) {
+ my ($m) = @_;
+ progress "$m";
+ runcmd_ordryrun_local @git, qw(commit -m), $m;
+}
+
sub commit_quilty_patch () {
my $output = cmdoutput @git, qw(status --porcelain);
my %adds;
@@ -1380,9 +1386,7 @@ sub commit_quilty_patch () {
return;
}
runcmd_ordryrun_local @git, qw(add), sort keys %adds;
- my $m = "Commit Debian 3.0 (quilt) metadata";
- progress "$m";
- runcmd_ordryrun_local @git, qw(commit -m), $m;
+ commit_admin "Commit Debian 3.0 (quilt) metadata";
}
sub madformat ($) {