From: Aleen via GitGitGadget Date: Mon, 22 Nov 2021 06:46:49 GMT Subject: [PATCH v8 0/2] am: support --empty=(die|drop|keep) option to handle empty patches Message-ID: In-Reply-To: Since that git has supported the --always option for the git-format-patch command to create a patch with an empty commit message, git-am should support applying and committing with empty patches. ---------------------------------------------------------------------------- Changes since v1: 1. add a case when not passing the --always option. 2. rename the --always option to --allow-empty. ---------------------------------------------------------------------------- Changes since v2: 1. rename the --allow-empty option to --empty-commit. 2. introduce three different strategies (die|skip|asis) when trying to record empty patches as empty commits. ---------------------------------------------------------------------------- Changes since v3: 1. generate the missed file for test cases. 2. grep -f cannot be used under Mac OS. ---------------------------------------------------------------------------- Changes since v4: 1. rename the --empty-commit option to --empty. 2. rename three different strategies (die|skip|asis) to die, drop and keep correspondingly. ---------------------------------------------------------------------------- Changes since v5: 1. throw an error when passing --empty option without value. ---------------------------------------------------------------------------- Changes since v6: 1. update code according to the seen branch 2. fix wrong document of git-am ---------------------------------------------------------------------------- Aleen (2): doc: git-format-patch: describe the option --always am: support --empty=