-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Use merge tree to improve conflict checking performance when possible #35542
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
base: main
Are you sure you want to change the base?
Conversation
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.
All old code (for SupportGitMergeTree=false) loses there test coverage?
It's ready to review again. |
|
…tea into lunny/merge_tree_conflict_check
All of these have been resolved. |
In Git 2.38, the
merge-tree
command introduced the--write-tree
option, which works directly on bare repositories. This option produces the merged tree object ID, allowing us to perform diffs between commits without creating a temporary repository. By avoiding the overhead of setting up and tearing down temporary repos, this approach delivers a notable performance improvement.