Skip to content
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

Browse: Clarify RefreshRevisions() handling #9897

Merged
merged 1 commit into from Mar 15, 2022

Conversation

gerhardol
Copy link
Member

Follow up to #9864, related to #9888

Proposed changes

If a new repo is opened in FormBrowse the call chain is
SetGitModule() -> UICommands_PostRepositoryChanged() -> RefreshRevisions()
Most other refreshes in Browse uses RepoChangedNotifier.Notify(),
which is confusing when reading the code.

As the sidepanel is init from RepoChangedNotifier.Notify(),
the use of Notify() cannot be changed now.
This commit just separates the changes to RefreshRevisions().

Test methodology

Manual

Merge strategy

I agree that the maintainer squash merge this PR (if the commit message is clear).


✒️ I contribute this code under The Developer Certificate of Origin.

If a new repo is opened in FormBrowse the call chain is
SetGitModule() -> UICommands_PostRepositoryChanged() -> RefreshRevisions()
Most other refreshes in Browse uses RepoChangedNotifier.Notify(),
which is confusing when reading the code.

As the sidepanel is init from RepoChangedNotifier.Notify(),
the use of Notify() cannot be changed now.
This commit just separates the changes to RefreshRevisions().
@ghost ghost assigned gerhardol Mar 13, 2022
@gerhardol gerhardol merged commit be68cc8 into gitextensions:master Mar 15, 2022
@ghost ghost added this to the vNext milestone Mar 15, 2022
@gerhardol gerhardol deleted the feature/p9864-browse-init branch March 15, 2022 22:04
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.

None yet

3 participants