Skip to contentSkip to conversation

patch set resubmission

DISCUSSION Deepak R Varma 2 participants 3 messages Nov 2, 2022

lore
Share & tools
lore
#0 lore raw

Hello,
I had a patch set with 2 patches. One of the two was accepted and applied to the staging tree, whereas the other patch needs correction and a revision.

I did refresh my local branch to match the staging-testing tree commit level. Now, my patch-1 from the set is 9 commits down the patch-2 commit. Patch-2 commit is the top commit in my local branch.

In this case, do I still need to send the patch set with both the patches? If yes, How can I format a patch set from two distant commits?

Thank you,
./drv

#1 lore raw
Quoted 10 lines · Deepak R Varma

Hello,
I had a patch set with 2 patches. One of the two was accepted and applied to the staging tree, whereas the other patch needs correction and a revision.

I did refresh my local branch to match the staging-testing tree commit level. Now, my patch-1 from the set is 9 commits down the patch-2 commit. Patch-2 commit is the top commit in my local branch.

In this case, do I still need to send the patch set with both the patches? If yes, How can I format a patch set from two distant commits?

You don't need to resend what was already accepted.

It shouldn't be necessary in this case, but you can use git rebase -i HEAD~N to reorganize patches in the last N commits.

julia

#2 lore raw
Quoted 12 lines · Julia Lawall
Quoted 8 lines · Deepak R Varma

Hello,
I had a patch set with 2 patches. One of the two was accepted and applied to the staging tree, whereas the other patch needs correction and a revision.

I did refresh my local branch to match the staging-testing tree commit level. Now, my patch-1 from the set is 9 commits down the patch-2 commit. Patch-2 commit is the top commit in my local branch.

Quoted 7 lines
Quoted 2 lines

In this case, do I still need to send the patch set with both the patches? If yes, How can I format a patch set from two distant commits?

You don't need to resend what was already accepted.

It shouldn't be necessary in this case, but you can use git rebase -i HEAD~N to reorganize patches in the last N commits.

Hi Julia,
Thank you for responding to my question. I have submitted the revised patch set per the guideline you provided.

Extended question (not urgent):
Agree that "git rebase -i" can be used to reorganize commits; however, I am not sure how this can help with "git format-patch -n --thread=shallow commit#D^..commit#A"??? Won't we include everything in between commit D and A here? I wanted to know if there is a way to only include commit D and A in format-patch when they are separated by a few intermediate commits.

./drv

Quoted 3 lines

julia