Handled Git multiple branch issue#4223
Conversation
WalkthroughThis change removes the explicit retrieval of source control properties from the user profile during check-in and connection detail configuration pages. Profile updates are now performed only after successful user actions, simplifying the process and reducing automatic operations. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant CheckInPage
participant WorkSpace
participant SourceControl
User->>CheckInPage: Click Commit and Check-in
CheckInPage->>SourceControl: Perform commit and check-in
Note over CheckInPage: No longer retrieves source control properties from user profile
sequenceDiagram
participant User
participant SourceControlConnDetailsPage
participant SourceControlIntegration
participant WorkSpace
User->>SourceControlConnDetailsPage: Open connection details
SourceControlConnDetailsPage->>SourceControlIntegration: Get current branch
SourceControlIntegration-->>SourceControlConnDetailsPage: Return branch name
Note over SourceControlConnDetailsPage: Always assigns branch, no conditional logic
User->>SourceControlConnDetailsPage: Save configuration
SourceControlConnDetailsPage->>SourceControlIntegration: Test connection
SourceControlIntegration-->>SourceControlConnDetailsPage: Connection result
SourceControlConnDetailsPage->>WorkSpace: Set source control property (only after test)
Possibly related PRs
Suggested reviewers
Poem
✨ Finishing Touches
🧪 Generate Unit Tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 2
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (2)
Ginger/Ginger/SourceControl/CheckInPage.xaml.cs(0 hunks)Ginger/Ginger/SourceControl/SourceControlConnDetailsPage.xaml.cs(2 hunks)
💤 Files with no reviewable changes (1)
- Ginger/Ginger/SourceControl/CheckInPage.xaml.cs
Thank you for your contribution.
Before submitting this PR, please make sure:
Summary by CodeRabbit