* [PATCH] Documentation: update git configuration for Link: tag
@ 2023-06-19 9:55 Johannes Berg
2023-06-19 12:55 ` Greg Kroah-Hartman
2023-06-21 15:16 ` Jonathan Corbet
0 siblings, 2 replies; 3+ messages in thread
From: Johannes Berg @ 2023-06-19 9:55 UTC (permalink / raw)
To: linux-kernel, linux-doc
Cc: Jonathan Corbet, Greg Kroah-Hartman, Johannes Berg
From: Johannes Berg <johannes.berg@intel.com>
The latest version of git (2.41.0) changed the spelling
of Message-Id to Message-ID. Adjust the perl script here
to accept both spellings.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
Documentation/maintainer/configure-git.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/maintainer/configure-git.rst b/Documentation/maintainer/configure-git.rst
index 80ae5030a590..ec0ddfb9cdd3 100644
--- a/Documentation/maintainer/configure-git.rst
+++ b/Documentation/maintainer/configure-git.rst
@@ -56,7 +56,7 @@ by adding the following hook into your git:
$ cat >.git/hooks/applypatch-msg <<'EOF'
#!/bin/sh
. git-sh-setup
- perl -pi -e 's|^Message-Id:\s*<?([^>]+)>?$|Link: https://lore.kernel.org/r/$1|g;' "$1"
+ perl -pi -e 's|^Message-I[dD]:\s*<?([^>]+)>?$|Link: https://lore.kernel.org/r/$1|g;' "$1"
test -x "$GIT_DIR/hooks/commit-msg" &&
exec "$GIT_DIR/hooks/commit-msg" ${1+"$@"}
:
--
2.41.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] Documentation: update git configuration for Link: tag
2023-06-19 9:55 [PATCH] Documentation: update git configuration for Link: tag Johannes Berg
@ 2023-06-19 12:55 ` Greg Kroah-Hartman
2023-06-21 15:16 ` Jonathan Corbet
1 sibling, 0 replies; 3+ messages in thread
From: Greg Kroah-Hartman @ 2023-06-19 12:55 UTC (permalink / raw)
To: Johannes Berg; +Cc: linux-kernel, linux-doc, Jonathan Corbet, Johannes Berg
On Mon, Jun 19, 2023 at 11:55:34AM +0200, Johannes Berg wrote:
> From: Johannes Berg <johannes.berg@intel.com>
>
> The latest version of git (2.41.0) changed the spelling
> of Message-Id to Message-ID. Adjust the perl script here
> to accept both spellings.
>
> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
> ---
> Documentation/maintainer/configure-git.rst | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Thanks for figuring this out!
Tested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Documentation: update git configuration for Link: tag
2023-06-19 9:55 [PATCH] Documentation: update git configuration for Link: tag Johannes Berg
2023-06-19 12:55 ` Greg Kroah-Hartman
@ 2023-06-21 15:16 ` Jonathan Corbet
1 sibling, 0 replies; 3+ messages in thread
From: Jonathan Corbet @ 2023-06-21 15:16 UTC (permalink / raw)
To: Johannes Berg, linux-kernel, linux-doc; +Cc: Greg Kroah-Hartman, Johannes Berg
Johannes Berg <johannes@sipsolutions.net> writes:
> From: Johannes Berg <johannes.berg@intel.com>
>
> The latest version of git (2.41.0) changed the spelling
> of Message-Id to Message-ID. Adjust the perl script here
> to accept both spellings.
>
> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
> ---
> Documentation/maintainer/configure-git.rst | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/maintainer/configure-git.rst b/Documentation/maintainer/configure-git.rst
> index 80ae5030a590..ec0ddfb9cdd3 100644
> --- a/Documentation/maintainer/configure-git.rst
> +++ b/Documentation/maintainer/configure-git.rst
> @@ -56,7 +56,7 @@ by adding the following hook into your git:
> $ cat >.git/hooks/applypatch-msg <<'EOF'
> #!/bin/sh
> . git-sh-setup
> - perl -pi -e 's|^Message-Id:\s*<?([^>]+)>?$|Link: https://lore.kernel.org/r/$1|g;' "$1"
> + perl -pi -e 's|^Message-I[dD]:\s*<?([^>]+)>?$|Link: https://lore.kernel.org/r/$1|g;' "$1"
> test -x "$GIT_DIR/hooks/commit-msg" &&
Applied, thanks.
jon
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-06-21 15:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-19 9:55 [PATCH] Documentation: update git configuration for Link: tag Johannes Berg
2023-06-19 12:55 ` Greg Kroah-Hartman
2023-06-21 15:16 ` Jonathan Corbet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).