-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Clear cherry-picked commits after pasting #3240
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,6 +54,10 @@ var CherryPickConflicts = NewIntegrationTest(NewIntegrationTestArgs{ | |
|
||
t.Common().AcknowledgeConflicts() | ||
|
||
// cherry pick selection is not cleared when there are conflicts, so that the user | ||
// is able to abort and try again without having to re-copy the commits | ||
t.Views().Information().Content(Contains("2 commits copied")) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Worth adding a comment explaining why we expect to see this i.e.: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good point. Thank you for the feedback. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jesseduffield I amended and force-pushed the suggested comment. |
||
|
||
t.Views().Files(). | ||
IsFocused(). | ||
SelectedLine(Contains("file")). | ||
|
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.
Same as above:
I know it's more verbose to do it this way but it's less nested and I find it easier to reason about go code when I can skim over
if err != nil
blocks compared toif err == nil