diff options
author | Philip Hands <phil@hands.com> | 2022-11-08 10:35:04 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2022-11-11 22:18:53 +0000 |
commit | 134f32059649c6c342e73ac786ce3c6b5e641130 (patch) | |
tree | 8da96da79ce6dc843699afb160820d36905575f1 /dgit-maint-debrebase.7.pod | |
parent | a7425f63b4551d04dc95f506b1e69829d0d1de2c (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-debrebase.7.pod')
-rw-r--r-- | dgit-maint-debrebase.7.pod | 8 |
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 |