]> git.ipfire.org Git - thirdparty/git.git/commit - Documentation/git-commit.txt
commit: add --cleanup=scissors
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Mon, 17 Feb 2014 12:15:32 +0000 (19:15 +0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 25 Feb 2014 17:35:20 +0000 (09:35 -0800)
commit75df1f434f8cfdac1c8eeacae259ab375c01385b
tree073ed4370f17e679c2fd8047c1c7fd832266db7b
parentfcef9312a4ad3d94bfa2d02c41e46eb6adcde9b1
commit: add --cleanup=scissors

Since 1a72cfd (commit -v: strip diffs and submodule shortlogs from the
commit message - 2013-12-05) we have a less fragile way to cut out
"git status" at the end of a commit message but it's only enabled for
stripping submodule shortlogs.

Add new cleanup option that reuses the same mechanism for the entire
"git status" without accidentally removing lines starting with '#'.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-commit.txt
builtin/commit.c
t/t7502-commit.sh