diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2014-08-04 01:14:26 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2014-08-04 01:14:26 +0100 |
commit | 07261afb451ed4420d3dbda87613fa1229130276 (patch) | |
tree | 7b34677736fb0215fc148deade0da18abdb4d786 | |
parent | a3522f3c05881c36b5630fc6aaa21dde22b5dd06 (diff) |
Provide `dgit clean'. Closes:#736527.
-rw-r--r-- | debian/changelog | 1 | ||||
-rwxr-xr-x | dgit | 5 | ||||
-rw-r--r-- | dgit.1 | 4 |
3 files changed, 10 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index 8695a5f..051b1fd 100644 --- a/debian/changelog +++ b/debian/changelog @@ -30,6 +30,7 @@ dgit (0.22~experimental1) experimental; urgency=low * Provide t-archive-process-incoming and t-archive-query subroutines for regression test scripts to use. * Print better message for unknown operations. + * Provide `dgit clean'. Closes:#736527. Major new feature, currently stalled awaiting server infrastructure: * dgit-repos-server: New program for receiving signed-tag-based @@ -1948,6 +1948,11 @@ sub clean_tree () { } } +sub cmd_clean () { + badusage "clean takes no additional arguments" if @ARGV; + clean_tree(); +} + sub build_prep () { badusage "-p is not allowed when building" if defined $package; check_not_dirty(); @@ -106,6 +106,10 @@ and Tagging, signing and actually uploading should be left to dgit push. .TP +.B dgit clean +Cleans the current working tree (according to the --clean= option in +force). +.TP .B dgit help Print a usage summary. .TP |