[Intel-gfx] [PATCH i-g-t] Make autogen.sh set the default format.subjectPrefix

Eric Anholt eric at anholt.net
Wed Jun 7 23:54:53 UTC 2017


CONTRIBUTING requests that people do this, but it's a lot easier if we
just set it up by default for them.

Signed-off-by: Eric Anholt <eric at anholt.net>
---

I missed this step on my previous two patches, so let's just prevent
that in the future.  :(

 autogen.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/autogen.sh b/autogen.sh
index ec633f3efefd..53df7525a976 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -16,6 +16,9 @@ fi
 autoreconf -v --install || exit 1
 cd $ORIGDIR || exit $?
 
+git config --local --get format.subjectPrefix >/dev/null 2>&1 ||
+    git config --local format.subjectPrefix "PATCH i-g-t"
+
 if test -z "$NOCONFIGURE"; then
         $srcdir/configure "$@"
 fi
-- 
2.11.0



More information about the Intel-gfx mailing list