From baa5b9fb51a094ddfee294f3610d1cbdb2943cac Mon Sep 17 00:00:00 2001 From: Tudor Ambarus Date: Fri, 3 Jul 2020 14:21:24 +0300 Subject: man: Update commit url mask to contain 12 chars of ID Use 12 characters for the commit ID, similar to what git log --oneline uses. 10 chars of ID is sometimes not enough and git.kernel.org returns "Bad object ID". Example: https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git/commit/?id=482dcb2a04 Signed-off-by: Tudor Ambarus Signed-off-by: Konstantin Ryabitsev --- man/b4.5.rst | 2 +- thanks-am-template.example | 2 +- thanks-pr-template.example | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/man/b4.5.rst b/man/b4.5.rst index 21ba447..2591a04 100644 --- a/man/b4.5.rst +++ b/man/b4.5.rst @@ -262,7 +262,7 @@ Default configuration, with explanations:: # How long to keep downloaded threads in cache (minutes)? cache-expire = 10 # Used when creating summaries for b4 ty, and can be set to a value like - # thanks-commit-url-mask = https://git.kernel.org/username/c/%.10s + # thanks-commit-url-mask = https://git.kernel.org/username/c/%.12s # See this page for more info on convenient git.kernel.org shorterners: # https://korg.wiki.kernel.org/userdoc/git-url-shorterners thanks-commit-url-mask = None diff --git a/thanks-am-template.example b/thanks-am-template.example index 40239f3..b2c8986 100644 --- a/thanks-am-template.example +++ b/thanks-am-template.example @@ -27,7 +27,7 @@ Applied to ${branch}, thanks! # to the commit id in your tree, so you probably want to set # b4.thanks-commit-url-mask in gitconfig to a value like: # [b4] -# thanks-commit-url-mask = https://git.kernel.org/username/c/%.10s +# thanks-commit-url-mask = https://git.kernel.org/username/c/%.12s # # Check this page for info on convenient URL shorteners: # https://korg.wiki.kernel.org/userdoc/git-url-shorterners diff --git a/thanks-pr-template.example b/thanks-pr-template.example index bb146f5..13bd205 100644 --- a/thanks-pr-template.example +++ b/thanks-pr-template.example @@ -27,7 +27,7 @@ Merged into ${branch}, thanks! # so you probably want to set b4.thanks-commit-url-mask in gitconfig # to a value like: # [b4] -# thanks-commit-url-mask = https://git.kernel.org/username/c/%.10s +# thanks-commit-url-mask = https://git.kernel.org/username/c/%.12s # # Check this page for info on convenient URL shorteners: # https://korg.wiki.kernel.org/userdoc/git-url-shorterners -- cgit v1.2.3