-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
am: support --empty=(stop|drop|keep)
option and --allow-empty
option to handle empty patches
#1076
Conversation
Welcome to GitGitGadgetHi @aleen42, and welcome to GitGitGadget, the GitHub App to send patch series to the Git mailing list from GitHub Pull Requests. Please make sure that your Pull Request has a good description, as it will be used as cover letter. Also, it is a good idea to review the commit messages one last time, as the Git project expects them in a quite specific form:
It is in general a good idea to await the automated test ("Checks") in this Pull Request before contributing the patches, e.g. to avoid trivial issues such as unportable code. Contributing the patchesBefore you can contribute the patches, your GitHub username needs to be added to the list of permitted users. Any already-permitted user can do that, by adding a comment to your PR of the form Both the person who commented An alternative is the channel
Once on the list of permitted usernames, you can contribute the patches to the Git mailing list by adding a PR comment If you want to see what email(s) would be sent for a After you submit, GitGitGadget will respond with another comment that contains the link to the cover letter mail in the Git mailing list archive. Please make sure to monitor the discussion in that thread and to address comments and suggestions (while the comments and suggestions will be mirrored into the PR by GitGitGadget, you will still want to reply via mail). If you do not want to subscribe to the Git mailing list just to be able to respond to a mail, you can download the mbox from the Git mailing list archive (click the curl -g --user "<EMailAddress>:<Password>" \
--url "imaps://imap.gmail.com/INBOX" -T /path/to/raw.txt To iterate on your change, i.e. send a revised patch or patch series, you will first want to (force-)push to the same branch. You probably also want to modify your Pull Request description (or title). It is a good idea to summarize the revision by adding something like this to the cover letter (read: by editing the first comment on the PR, i.e. the PR description):
To send a new iteration, just add another PR comment with the contents: Need help?New contributors who want advice are encouraged to join git-mentoring@googlegroups.com, where volunteers who regularly contribute to Git are willing to answer newbie questions, give advice, or otherwise provide mentoring to interested contributors. You must join in order to post or view messages, but anyone can join. You may also be able to find help in real time in the developer IRC channel, |
/allow |
User aleen42 is now allowed to use GitGitGadget. |
Looks like the added test case is failing:
|
FWIW you can run those tests manually, on your local machine. See e.g. this wiki page. |
@dscho OK, I'll check it individually on my local machine. |
e720972
to
59b1417
Compare
@dscho PR is ready to submit. |
/submit |
Submitted as pull.1076.git.1636693095.gitgitgadget@gmail.com To fetch this version into
To fetch this version to local tag
|
On the Git mailing list, René Scharfe wrote (reply to this):
|
User |
On the Git mailing list, Junio C Hamano wrote (reply to this):
|
/submit |
Submitted as pull.1076.v2.git.1636700040.gitgitgadget@gmail.com To fetch this version into
To fetch this version to local tag
|
On the Git mailing list, "Aleen" wrote (reply to this):
|
On the Git mailing list, Aleen 徐沛文 wrote (reply to this):
|
User |
On the Git mailing list, René Scharfe wrote (reply to this):
|
User |
On the Git mailing list, Junio C Hamano wrote (reply to this):
|
This patch series was integrated into seen via git@ee90fda. |
There was a status update in the "Cooking" section about the branch "git am" learns "--empty=3D(die|drop|keep)" option to tweak what is done to a piece of e-mail without a patch in it. Almost there. source: <pull.1076.v18.git.1638939946.gitgitgadget@gmail.com> |
This patch series was integrated into seen via git@02e156f. |
This patch series was integrated into seen via git@5082b96. |
This patch series was integrated into seen via git@ed41fbb. |
This patch series was integrated into seen via git@dd867f3. |
This patch series was integrated into seen via git@2ea70b8. |
--empty=(die|drop|keep)
option and --allow-empty
option to handle empty patches--empty=(stop|drop|keep)
option and --allow-empty
option to handle empty patches
This patch series was integrated into seen via git@d93b5f8. |
This patch series was integrated into seen via git@3aec6e7. |
This patch series was integrated into seen via git@079d809. |
This patch series was integrated into seen via git@6609472. |
This patch series was integrated into seen via git@5f9d6e7. |
This patch series was integrated into seen via git@f6a8daf. |
There was a status update in the "Cooking" section about the branch "git am" learns "--empty=3D(stop|drop|keep)" option to tweak what is done to a piece of e-mail without a patch in it. Will merge to 'next'. source: <pull.1076.v19.git.1639034755.gitgitgadget@gmail.com> |
This patch series was integrated into seen via git@69e7ad7. |
This patch series was integrated into seen via git@ce004a4. |
This patch series was integrated into next via git@562e155. |
There was a status update in the "Cooking" section about the branch "git am" learns "--empty=3D(stop|drop|keep)" option to tweak what is done to a piece of e-mail without a patch in it. Will merge to 'master'. source: <pull.1076.v19.git.1639034755.gitgitgadget@gmail.com> |
This patch series was integrated into seen via git@c053bd9. |
This patch series was integrated into seen via git@e6c78ac. |
There was a status update in the "Cooking" section about the branch "git am" learns "--empty=3D(stop|drop|keep)" option to tweak what is done to a piece of e-mail without a patch in it. Will merge to 'master'. source: <pull.1076.v19.git.1639034755.gitgitgadget@gmail.com> |
This patch series was integrated into seen via git@2080e95. |
This patch series was integrated into seen via git@ead6767. |
This patch series was integrated into next via git@ead6767. |
This patch series was integrated into master via git@ead6767. |
Closed via ead6767. |
Since that git has supported the
--always
option for thegit-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:
--always
option.--always
option to--allow-empty
.Changes since v2:
--allow-empty
option to--empty-commit
.die
|skip
|asis
) when trying to record empty patches as empty commits.Changes since v3:
grep -f
cannot be used under Mac OS.Changes since v4:
--empty-commit
option to--empty
.die
|skip
|asis
) todie
,drop
andkeep
correspondingly.Changes since v5:
Changes since v6:
Changes since v7:
seen
branch.git-am
.Changes since v8:
Changes since v9:
Changes since v11:
--allow-empty
forgit-am
to record empty patches in the middle of an am session.Changes since v12:
--skip
option.Changes since v13:
Changes since v14:
--allow-empty
option is a valid resume value only when: (Expected a reroll)Changes since v15:
Changes since v16:
Changes since v17:
Changes since v18:
cc: René Scharfe l.s.r@web.de
cc: Phillip Wood phillip.wood123@gmail.com
cc: Johannes Schindelin Johannes.Schindelin@gmx.de
cc: Elijah Newren newren@gmail.com
cc: Aleen 徐沛文 pwxu@coremail.cn
cc: Bagas Sanjaya bagasdotme@gmail.com