[PATCH] Add git format.subjectPrefix to modules

Mihail Konev k.mvc at ya.ru
Mon Oct 10 17:45:20 UTC 2016


Hello.

Xserver's autogen.sh checks for format.subjectPrefix git
preference to be defined, and sets a default in case there is none.

Other modules are missing this feature.

To generate the patches,

In xorg/util/modular directory, cloned all the modules
(thanks to build.sh -L).
Ran the attached subject_all.sh script.
Changed to patches dir ./subjectPrefix_patches/ it created.
Verified the patches with "grep changed * | grep -v ' 3 insert'".
Ran the attached all.sh script.

Attached is the all.tar.xz result.
Below is a sample for xcb-proto.

> From 13713caf3194581501fa891e2da1c1c33cd47693 Mon Sep 17 00:00:00 2001
> From: Mihail Konev <k.mvc at ya.ru>
> Date: Mon, 10 Oct 2016 15:01:11 +0000
> Subject: [PATCH xcb/proto] add git format.subjectPrefix to autogen.sh
> 
> Signed-off-by: Mihail Konev <k.mvc at ya.ru>
> ---
>  autogen.sh | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/autogen.sh b/autogen.sh
> index fc34bd55c443..78d554b5cdc0 100755
> --- a/autogen.sh
> +++ b/autogen.sh
> @@ -9,6 +9,9 @@ cd $srcdir
>  autoreconf -v --install || exit 1
>  cd $ORIGDIR || exit $?
>  
> +git config --local --get format.subjectPrefix >/dev/null 2>&1 ||
> +    git config --local format.subjectPrefix "PATCH xcb/proto"
> +
>  if test -z "$NOCONFIGURE"; then
>      $srcdir/configure "$@"
>  fi
> -- 
> 2.9.2
> 

- Mihail
-------------- next part --------------
A non-text attachment was scrubbed...
Name: subject_all.sh
Type: application/x-sh
Size: 1461 bytes
Desc: not available
URL: <https://lists.x.org/archives/xorg-devel/attachments/20161010/db0b1c48/attachment-0002.sh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: all.sh
Type: application/x-sh
Size: 232 bytes
Desc: not available
URL: <https://lists.x.org/archives/xorg-devel/attachments/20161010/db0b1c48/attachment-0003.sh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: all.tar.xz
Type: application/x-xz
Size: 14020 bytes
Desc: not available
URL: <https://lists.x.org/archives/xorg-devel/attachments/20161010/db0b1c48/attachment-0001.xz>


More information about the xorg-devel mailing list