threads / patch / 4294

patchAdd instructions to commit template.

Subject: [PATCH] Add instructions to commit template.

## tl;dr

One message between May 25, 2006 and May 25, 2006. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Martin Waitz· May 25, 2006, 23:42 UTC · lore

New users can be irritated by the git status text in their editor. Let's give them a short help.

Signed-off-by: Martin Waitz <tali@admingilde.org>
---
 git-commit.sh |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
Show changes to git-commit.sh +3 −0
diff --git a/git-commit.sh b/git-commit.sh
index 6785826..1983d45 100755
--- a/git-commit.sh
+++ b/git-commit.sh
@@ -626,6 +626,9 @@ fi
 if test -z "$no_edit"
 then
 	{
+		echo ""
+		echo "# Please enter the commit message for your changes."
+		echo "# (Comment lines starting with '#' will not be included)"
 		test -z "$only_include_assumed" || echo "$only_include_assumed"
 		run_status
 	} >>"$GIT_DIR"/COMMIT_EDITMSG
-- 
1.3.3.gc6dc-dirty


-- 
Martin Waitz

← back to recent threads