summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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
parent954e9fcc64e98fd0591ca31644eb9b99ca552b46 (diff)
downloadgit-buildpackage-445d37d1a451de2c17040c59a49a1af9e10fed5f.tar.gz
git-buildpackage-445d37d1a451de2c17040c59a49a1af9e10fed5f.tar.bz2
git-buildpackage-445d37d1a451de2c17040c59a49a1af9e10fed5f.zip
doc-update: snapshot-number can be used in gbp.conf too
-rw-r--r--docs/chapters/releases.sgml15
1 files changed, 11 insertions, 4 deletions
diff --git a/docs/chapters/releases.sgml b/docs/chapters/releases.sgml
index 0ff1d4ad..2ee3aea9 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>
<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`
+&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>
+<para>
+You can also add the snapshot-number calculation to gbp.conf:
+</para>
+<programlisting>
+[DEFAULT]
+snapshot-number = os.popen("git-log --pretty=oneline | wc -l").readlines()[0]
+</programlisting>
</sect1>
</chapter>