From: Richard Hartmann Date: Mon, 2 Sep 2013 19:04:41 +0000 (+0200) Subject: dgit*: Implement `dgit version` X-Git-Tag: debian/0.15~12 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=768ff5909deb2493f1435ed5ab93019cdd75682a dgit*: Implement `dgit version` --- diff --git a/dgit b/dgit index 7be8e308..fd59eeef 100755 --- a/dgit +++ b/dgit @@ -28,6 +28,8 @@ use File::Basename; use Dpkg::Version; use POSIX; +our $dgit_version = 0.14; + our $isuite = 'unstable'; our $idistro; our $package; @@ -1199,6 +1201,10 @@ sub cmd_quilt_fixup { build_maybe_quilt_fixup(); } +sub cmd_version { + print "dgit version $dgit_version\n"; +} + sub parseopts () { my $om; while (@ARGV) { diff --git a/dgit.1 b/dgit.1 index 95923d38..251af593 100644 --- a/dgit.1 +++ b/dgit.1 @@ -151,6 +151,9 @@ by making a new debian/ patch containing your unquilty changes) and make a commit of the changes it has made. This is normally done automatically by dgit build and dgit push. +.TP +.B dgit version +Prints version information and exits. .SH OPTIONS .TP .BR --dry-run | -n