You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I solved a bug in 3.0, I used git am to reapply patches to an external clone I made, then manually ran git format-patch to recreate patch files, then copied them over into source-build.
I use extract-patches.sh. When making changes in repos, I work in the "non-commit-id labelled" directory of the repo in bin/src and checkout the target commit. Then I run git am to reapply patches, make my changes and commit and then use extract-patches.sh to recreate patch files.
Interesting... I wouldn't expect this to work anymore--I would expect it to give you the source-build commit, which is not in the same tree as the repo commit, causing some sort of failure or unexpected behavior:
Reopening to track documenting the expected way to do this. In particular, for servicing scenarios, where we shouldn't spend time figuring out a personal process.
Activity
dseefeld commentedon Feb 4, 2020
I use
extract-patches.sh. When making changes in repos, I work in the "non-commit-id labelled" directory of the repo in bin/src and checkout the target commit. Then I rungit amto reapply patches, make my changes and commit and then useextract-patches.shto recreate patch files.dagood commentedon Feb 4, 2020
Interesting... I wouldn't expect this to work anymore--I would expect it to give you the source-build commit, which is not in the same tree as the repo commit, causing some sort of failure or unexpected behavior:
source-build/extract-patches.sh
Lines 5 to 10 in 3085962
(Edit: On second glance, not sure if that would even give you the source-build commit.)
dseefeld commentedon Feb 4, 2020
I see. I don't ever use that path because I always pass in the base SHA instead of allowing it to try to figure it out.
adaggarwal commentedon Feb 4, 2020
I usually go with the manual approach
git am->format-patchdagood commentedon Feb 4, 2020
Thanks, filed #1469 to track improving the script.
dagood commentedon Jul 22, 2020
Reopening to track documenting the expected way to do this. In particular, for servicing scenarios, where we shouldn't spend time figuring out a personal process.
MichaelSimons commentedon Oct 18, 2022
[Triage] We don't want patches and don't want to do work that encourages them 😄.