summaryrefslogtreecommitdiff
path: root/dgit-maint-merge.7.pod
diff options
context:
space:
mode:
authorPhilip Hands <phil@hands.com>2022-11-08 10:35:04 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2022-11-11 22:18:53 +0000
commit134f32059649c6c342e73ac786ce3c6b5e641130 (patch)
tree8da96da79ce6dc843699afb160820d36905575f1 /dgit-maint-merge.7.pod
parenta7425f63b4551d04dc95f506b1e69829d0d1de2c (diff)
add --pretty example for generating hash tags
Signed-off-by: Philip Hands <phil@hands.com> Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'dgit-maint-merge.7.pod')
-rw-r--r--dgit-maint-merge.7.pod8
1 files changed, 8 insertions, 0 deletions
diff --git a/dgit-maint-merge.7.pod b/dgit-maint-merge.7.pod
index db352f3..b60da85 100644
--- a/dgit-maint-merge.7.pod
+++ b/dgit-maint-merge.7.pod
@@ -144,6 +144,14 @@ common convention is to use the upstream version number
to obtain a release tag, and then proceed as above.
+One can generate such a versioned tag using git show's --pretty option. e.g.:
+
+=over 4
+
+ % git tag -s upstream/$(git show --date=format:%Y%m%d --pretty=format:"1.2.2+git%cd.%h" --quiet upstream/main) upstream/main
+
+=back
+
=back
=head2 When upstream releases only tarballs