-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Additional source control functionality #1785
Conversation
I am struggling to get the "Source Control" menu working here, specifically trying to gain access to the focused windows Edit: Fixed, thanks Khan! |
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.
LGTM, just small changes
...ures/NavigatorArea/SourceControlNavigator/Changes/Views/SourceControlNavigatorSyncView.swift
Outdated
Show resolved
Hide resolved
...ures/NavigatorArea/SourceControlNavigator/Changes/Views/SourceControlNavigatorSyncView.swift
Outdated
Show resolved
Hide resolved
Looks good, but no tests are present |
@matthijseikelenboom We need a separate issue to add tests to not just what I did in this PR but everything source control related. |
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.
Amazing work! Source control in CE is really shaping up. I just have a few small comments 😁
CodeEdit/Features/SourceControl/Views/SourceControlPushView.swift
Outdated
Show resolved
Hide resolved
ac32acc
to
5a43ef1
Compare
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.
CodeEdit/Features/SourceControl/Views/SourceControlAddExistingRemoteView.swift
Show resolved
Hide resolved
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.
Continuing my last review.
It looks like theres a way to make the default selected branch in this menu be incorrect. This was after making a new branch, switching to it, and pressing the push button. It should default to the selected branch but it seems the operationBranch
wasn't updated correctly from the repository outline view.
Also, I seem to be able to break the push mechanism on my machine:
Screen.Recording.2024-07-11.at.10.14.16.PM.mov
For more details:
- I created a branch, switched to it, pushed it to the remote, and switched back w/o closing the window
- After switching back, the push mechanism was broken.
Last thing: Could you provide more details on how you tested pulling changes? I can't figure how you did it with a local git repository.
CodeEdit/Features/SourceControl/Views/SourceControlNavigatorNewBranchView.swift
Outdated
Show resolved
Hide resolved
...ontrolNavigator/Repository/Views/SourceControlNavigatorRepositoryView+outlineGroupData.swift
Outdated
Show resolved
Hide resolved
CodeEdit/Features/SourceControl/Views/SourceControlStashView.swift
Outdated
Show resolved
Hide resolved
…ator. Refereshing remotes cache after adding a remote. Moved push and pull state variables into the source control manager. Stashing changes if changes exist when attempting a pull. Setting remote for push and pull after adding a remote. Renamed scm variables to sourceControlManager for clarity.
…for changes and if there are changes we prompt the user to stash changes before switching branches.
…ch from a remote branch. We are now disabling rename branch for remote branches.
…n to new branch and rename branch views
d4d0ea2
to
134d07e
Compare
Description
We are improving upon existing source control functionality by doing the following...
Testing
Note to reviewers... Please pull down and test this in addition to reviewing the code. Once you have this pulled down...
In a terminal run...
Then add the remote in CodeEdit by
Checklist
Screenshots
Todos discovered
Display loading indicator when pushing or pullingBe able to cancel push or pull while in progress