summaryrefslogtreecommitdiff
path: root/dgit-maint-debrebase.7.pod
diff options
context:
space:
mode:
Diffstat (limited to 'dgit-maint-debrebase.7.pod')
-rw-r--r--dgit-maint-debrebase.7.pod8
1 files changed, 8 insertions, 0 deletions
diff --git a/dgit-maint-debrebase.7.pod b/dgit-maint-debrebase.7.pod
index 6e19026..80bdf31 100644
--- a/dgit-maint-debrebase.7.pod
+++ b/dgit-maint-debrebase.7.pod
@@ -158,6 +158,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