-
Notifications
You must be signed in to change notification settings - Fork 349
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
FR: Transfer change ids via Git remote #4706
Comments
If the algorithm for computing the change ID results in the same ID from the commit regardless of remote or local, there is no reason to store |
The change id is initially generated in a deterministic way but then it follows the commit as it's rewritten, so later versions of the change will not have a change id that can be determined from the commit id. |
Could 'git notes' be used to store 'change ids'? |
They were unil commit c260fea |
Perhaps the conversion from the current storage format to git notes could be done lazily on git push/fetch? |
[long-term] One approach is to somehow synchronize the operation log instead of change IDs directly.
However, it doesn't seem realistic in the near-term due to a significant amount of design and implementation work. |
Is your feature request related to a problem? Please describe.
At the moment separate clones of the same Git repository (e.g. on different machines) may have different "change id" for the same commit. Lack of (reliable) stable identifier for commits across clones makes it hard to refer to them.
Describe the solution you'd like
When commit is first pushed to a git remote, its change id should be stored on the remote. When commit is first pulled into another clone, change id should be read from remote as well and used. For commits initially pushed with vanilla Git something reasonable should be done :)
Describe alternatives you've considered
Refer to commits using hashes - works only if commit content hasn't changed.
Additional context
N/A
The text was updated successfully, but these errors were encountered: