summaryrefslogtreecommitdiff
path: root/t/t0023-crlf-am.sh
diff options
context:
space:
mode:
authorLibravatar Charvi Mendiratta <charvi077@gmail.com>2021-03-15 13:24:32 +0530
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-03-15 14:29:35 -0700
commit494d314a0526a8bee9f8af7a6e6b74b66043c9fa (patch)
tree3889b956d734446ac457e43b920bf462f82c4c2e /t/t0023-crlf-am.sh
parentsequencer: export and rename subject_length() (diff)
downloadtgif-494d314a0526a8bee9f8af7a6e6b74b66043c9fa.tar.xz
commit: add amend suboption to --fixup to create amend! commit
`git commit --fixup=amend:<commit>` will create an "amend!" commit. The resulting commit message subject will be "amend! ..." where "..." is the subject line of <commit> and the initial message body will be <commit>'s message. The "amend!" commit when rebased with --autosquash will fixup the contents and replace the commit message of <commit> with the "amend!" commit's message body. In order to prevent rebase from creating commits with an empty message we refuse to create an "amend!" commit if commit message body is empty. Mentored-by: Christian Couder <chriscool@tuxfamily.org> Mentored-by: Phillip Wood <phillip.wood@dunelm.org.uk> Helped-by: Junio C Hamano <gitster@pobox.com> Helped-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Charvi Mendiratta <charvi077@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0023-crlf-am.sh')
0 files changed, 0 insertions, 0 deletions