diff options
author | Guido Guenther <agx@sigxcpu.org> | 2007-10-10 18:11:34 +0200 |
---|---|---|
committer | Guido Guenther <agx@sigxcpu.org> | 2007-10-10 18:11:34 +0200 |
commit | 571840e828ef098a03229435d713693a33b18902 (patch) | |
tree | c0c3f3eabd9ca0799b590f1ca739fedce9353c03 /docs/chapters | |
parent | f7a4e0919a649527ab9b24f82eb06016fe842b85 (diff) | |
download | git-buildpackage-571840e828ef098a03229435d713693a33b18902.tar.gz git-buildpackage-571840e828ef098a03229435d713693a33b18902.tar.bz2 git-buildpackage-571840e828ef098a03229435d713693a33b18902.zip |
document --snapshot-number
Diffstat (limited to 'docs/chapters')
-rw-r--r-- | docs/chapters/releases.sgml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/chapters/releases.sgml b/docs/chapters/releases.sgml index 58ac40f9..0ff1d4ad 100644 --- a/docs/chapters/releases.sgml +++ b/docs/chapters/releases.sgml @@ -59,4 +59,16 @@ git-buildpackage (0.3.7~1.gbp470ce2) UNRELEASED; urgency=low or tag instead of <option>HEAD</option> if you want to add further changelog entries - or you can (of course) use <option>--auto</option> again. </para> +<sect1 id="gbp.release.numbers"> + <title>Special snapshot numbers</title> + <para>If the auto incrementing of the snapshot number doesn't suite you needs you + can give any python expression that evaluates to a positive integer to + calculate the new snapshot number:</para> +<screen> +git-dch -S -a --snapshot-number=1 +git-dch -S -a --snapshot-number='snapshot + 2' +git-dch -S -a --snapshot-number='os.popen("git-log --pretty=oneline | wc -l").readlines()[0] +git-dch -S -a --snapshot-number=`git-log --pretty=oneline debian/0.3.3 | wc -l` +</screen> +</sect1> </chapter> |