path: root/docs/chapters
diff options
authorGuido Guenther <agx@sigxcpu.org>2007-10-10 18:46:10 +0200
committerGuido Guenther <agx@sigxcpu.org>2007-10-10 18:46:10 +0200
commit445d37d1a451de2c17040c59a49a1af9e10fed5f (patch)
tree58b697a3ef41a562c06713c8dda4f08843ebdfee /docs/chapters
parent954e9fcc64e98fd0591ca31644eb9b99ca552b46 (diff)
doc-update: snapshot-number can be used in gbp.conf too
Diffstat (limited to 'docs/chapters')
1 files changed, 11 insertions, 4 deletions
diff --git a/docs/chapters/releases.sgml b/docs/chapters/releases.sgml
index 0ff1d4a..2ee3aea 100644
--- a/docs/chapters/releases.sgml
+++ b/docs/chapters/releases.sgml
@@ -65,10 +65,17 @@ git-buildpackage (0.3.7~1.gbp470ce2) UNRELEASED; urgency=low
can give any python expression that evaluates to a positive integer to
calculate the new snapshot number:</para>
-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`
+&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`
+You can also add the snapshot-number calculation to gbp.conf:
+snapshot-number = os.popen("git-log --pretty=oneline | wc -l").readlines()[0]