Skip to content

Conversation

gadfly3173
Copy link
Contributor

CommitDetail reuse may cause CommitDetail being updated by other Repository tab

_sourcegit_20250703182953.mp4

CommitDetail reuse may cause CommitDetail being updated by other Repository tab
@love-linger
Copy link
Collaborator

非常奇怪,按理说,CommitDetail存在于Histories中,而不同的Repository,又有自己的Histories对像……

@love-linger
Copy link
Collaborator

我需要具体定位一下

@gadfly3173
Copy link
Contributor Author

我观察到的情况是: A切换到B - SelectedChanges被切换到B的 - DiffContext被设置,但是此时使用的还是A的CommitDetail,内部的_repo是A的

love-linger added a commit that referenced this pull request Jul 3, 2025
@love-linger
Copy link
Collaborator

定位到了,我提交了另一个更改,彻底改了这个问题

@love-linger love-linger closed this Jul 3, 2025
@gadfly3173 gadfly3173 deleted the fix/commit-changes branch July 4, 2025 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants