From: Ian Jackson Date: Mon, 4 Aug 2014 00:14:26 +0000 (+0100) Subject: Provide `dgit clean'. Closes:#736527. X-Git-Tag: debian/0.22~16 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=07261afb451ed4420d3dbda87613fa1229130276 Provide `dgit clean'. Closes:#736527. --- diff --git a/debian/changelog b/debian/changelog index 8695a5f4..051b1fdb 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 diff --git a/dgit b/dgit index 2852e134..5f1ef2e5 100755 --- a/dgit +++ b/dgit @@ -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(); diff --git a/dgit.1 b/dgit.1 index 1a6945a1..5a00dd77 100644 --- a/dgit.1 +++ b/dgit.1 @@ -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