-
Notifications
You must be signed in to change notification settings - Fork 72
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
git: Use merge-tree in patchsets #187
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Reviews in this chain: |
|
jerry-skydio
force-pushed
the
jerry/revup/main/mergetreepatch
branch
6 times, most recently
from
July 3, 2024 21:06
775056d
to
21f0057
Compare
jerry-skydio
force-pushed
the
jerry/revup/main/mergetreepatch
branch
from
July 3, 2024 21:08
21f0057
to
cbf755d
Compare
jerry-skydio
force-pushed
the
jerry/revup/main/gitconfig
branch
from
July 8, 2024 23:08
cb8fa69
to
64fe866
Compare
jerry-skydio
force-pushed
the
jerry/revup/main/mergetreepatch
branch
from
July 8, 2024 23:08
cbf755d
to
62ebf0b
Compare
aaron-skydio
approved these changes
Jul 23, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool
jerry-skydio
force-pushed
the
jerry/revup/main/gitconfig
branch
from
September 4, 2024 23:01
64fe866
to
4e46364
Compare
jerry-skydio
force-pushed
the
jerry/revup/main/mergetreepatch
branch
from
September 4, 2024 23:01
62ebf0b
to
6729d4f
Compare
jerry-skydio
force-pushed
the
jerry/revup/main/gitconfig
branch
from
November 5, 2024 21:37
4e46364
to
0ffe535
Compare
jerry-skydio
force-pushed
the
jerry/revup/main/mergetreepatch
branch
from
November 5, 2024 21:37
6729d4f
to
e65453b
Compare
jerry-skydio
force-pushed
the
jerry/revup/main/gitconfig
branch
from
December 7, 2024 01:15
0ffe535
to
920df71
Compare
jerry-skydio
force-pushed
the
jerry/revup/main/mergetreepatch
branch
from
December 7, 2024 01:15
e65453b
to
37894ad
Compare
jerry-skydio
force-pushed
the
jerry/revup/main/mergetreepatch
branch
2 times, most recently
from
December 28, 2024 22:25
d7e65a1
to
9baa70a
Compare
jerry-skydio
force-pushed
the
jerry/revup/main/mergetreepatch
branch
from
December 28, 2024 22:27
9baa70a
to
7a0a131
Compare
jerry-skydio
force-pushed
the
who/revup/main/relup
branch
from
December 28, 2024 22:27
bdffc6d
to
5d4048f
Compare
Previously patchsets used a hacky invocation of update-index to overlay changed files from old tree to new tree. In addition to being slower than necessary, this has the downside of showing upstream changes in the diff, even those that were not changed in the given review upload. Using git merge-tree for this instead is cleaner, faster, and better. We do this by "cherry-picking" the old branch with git merge-tree, but providing -X ours as the strategy. This provides a tree that looks like the new base with the old changes applied. For cases where the old changes don't apply cleanly, the ours strategy prevents conflicts by taking the version in the old tree. Although this can be a bit confusing when looking at the file as a whole, it provides a succinct way to view a difference between the old version and new version. Topic: mergetreepatch Fixes: #183
jerry-skydio
force-pushed
the
jerry/revup/main/mergetreepatch
branch
from
December 28, 2024 22:31
7a0a131
to
ee7227d
Compare
jerry-skydio
force-pushed
the
who/revup/main/relup
branch
from
December 28, 2024 22:31
5d4048f
to
bdffc6d
Compare
jerry-skydio
force-pushed
the
jerry/revup/main/mergetreepatch
branch
from
December 28, 2024 22:32
ee7227d
to
204fb64
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Previously patchsets used a hacky invocation of update-index
to overlay changed files from old tree to new tree. In addition
to being slower than necessary, this has the downside of showing
upstream changes in the diff, even those that were not changed
in the given review upload.
Using git merge-tree for this instead is cleaner, faster, and better.
We do this by "cherry-picking" the old branch with git merge-tree, but providing -X ours as
the strategy. This provides a tree that looks like the new base with the old changes applied.
For cases where the old changes don't apply cleanly, the ours strategy prevents conflicts by
taking the version in the old tree. Although this can be a bit confusing when looking at the
file as a whole, it provides a succinct way to view a difference between the old version and
new version.
Topic: mergetreepatch
Fixes: #183