From d1cc130a5eb50d5bfe1e8b76cab3d8970fd70ad1 Mon Sep 17 00:00:00 2001 From: Steven Grimm Date: Sun, 22 Jul 2007 21:17:42 -0700 Subject: Teach git-commit about commit message templates. These are useful in organizations that enforce particular formats for commit messages, e.g., to specify bug IDs or test plans. Use of the template is not enforced; it is simply used as the initial content when the editor is invoked. Signed-off-by: Steven Grimm Signed-off-by: Junio C Hamano --- t/t7500/add-comments | 4 ++++ t/t7500/add-content | 3 +++ t/t7500/add-signed-off | 3 +++ 3 files changed, 10 insertions(+) create mode 100755 t/t7500/add-comments create mode 100755 t/t7500/add-content create mode 100755 t/t7500/add-signed-off (limited to 't/t7500') diff --git a/t/t7500/add-comments b/t/t7500/add-comments new file mode 100755 index 000000000..a72e65c89 --- /dev/null +++ b/t/t7500/add-comments @@ -0,0 +1,4 @@ +#!/bin/sh +echo "# this is a new comment" >> "$1" +echo "# and so is this" >> "$1" +exit 0 diff --git a/t/t7500/add-content b/t/t7500/add-content new file mode 100755 index 000000000..2fa3d86a1 --- /dev/null +++ b/t/t7500/add-content @@ -0,0 +1,3 @@ +#!/bin/sh +echo "commit message" >> "$1" +exit 0 diff --git a/t/t7500/add-signed-off b/t/t7500/add-signed-off new file mode 100755 index 000000000..e1d856af6 --- /dev/null +++ b/t/t7500/add-signed-off @@ -0,0 +1,3 @@ +#!/bin/sh +echo "Signed-off-by: foo " >> "$1" +exit 0 -- cgit v1.2.1