]> git.ipfire.org Git - thirdparty/git.git/commit
t7501: add tests for --amend --signoff
authorGhanshyam Thakkar <shyamthakkar001@gmail.com>
Wed, 17 Jan 2024 16:13:55 +0000 (21:43 +0530)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 Jan 2024 21:31:16 +0000 (13:31 -0800)
commitcab11f4e4116bc2cb09fc83ed79aad4457a4e630
tree0f23b400690957febe1876b951d101172e359f15
parent4e4f576b0690ba039cc0db40e68ee4143acc9a4c
t7501: add tests for --amend --signoff

Add tests for amending the commit to add Signed-off-by trailer. And
also to check if it does not add another trailer if one already exists.

Currently, there are tests for --signoff separately in t7501, however,
they are not tested with --amend.

Therefore, these tests belong with other similar tests of --amend in
t7501-commit-basic-functionality.

Helped-by: Phillip Wood <phillip.wood123@gmail.com>
Signed-off-by: Ghanshyam Thakkar <shyamthakkar001@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7501-commit-basic-functionality.sh