]> git.ipfire.org Git - thirdparty/git.git/commit
am: support --allow-empty to record specific empty patches
author徐沛文 (Aleen) <aleen42@vip.qq.com>
Thu, 9 Dec 2021 07:25:55 +0000 (07:25 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 16 Dec 2021 01:04:19 +0000 (17:04 -0800)
commit9e7e41bf19ed10469f9adb60669b1699c81b8ea6
tree38c8ff55fb6b3b4280b09c6b87dcbdfa96da0d3a
parent7c096b8d61e1276acb6f84bf446cfe74578382a0
am: support --allow-empty to record specific empty patches

This option helps to record specific empty patches in the middle
of an am session, which does create empty commits only when:

    1. the index has not changed
    2. lacking a branch

When the index has changed, "--allow-empty" will create a non-empty
commit like passing "--continue" or "--resolved".

Signed-off-by: 徐沛文 (Aleen) <aleen42@vip.qq.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-am.txt
builtin/am.c
t/t4150-am.sh
t/t7512-status-help.sh
wt-status.c