-
Notifications
You must be signed in to change notification settings - Fork 1.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
Improve Git commit window #3614
Comments
@vinokurig : First it's really nice to see your thinking on this. I wanted to give you some feedbacks so you can think about them: 1- Options header in explorer 2- Git compare 3- Amend 4- Push to remote |
|
@slemeur WDYT? |
2- Git compare:
4- Push to remote For managing the remotes:
WDYT? |
@slemeur @vinokurig |
Will |
+1 |
Also, for me it makes sense to have 2 lists of changed files:
Of course a |
Avoid two list because it will be confusing. (could be shown differently than two different lists) Does it resolve your use case? |
It is confusing for any Git users to have only 1 list ... and parts of a file can be staged and other parts not staged so check box doesn't help. Example of Eclipse IDE one: https://wiki.eclipse.org/EGit/User_Guide#Committing_with_the_Staging_View |
-1 for 2 lists. Commit will automatically add unstaged files before committing, If user wants to exclude some files from commit he will unmark related checkbox. |
@sunix : Checkboxes here are providing:
-1 for 2 lists. |
@jgroom33 : Yes and they have drag&drop capability. For now, without having drag&drop capability and a rethink git experience - proposed solution by @vinokurig will still provide pleasant and welcomed improvements ^^ ! |
@slemeur Thanks. You guys rock. |
Hi guys, I can't find a way to revert the changes in the currently unstaged files to a previously committed version? Is this available? What about reverting the changes to an earlier commit in the history? |
@jgroom33 @slemeur maybe 2 lists don't have to be at the commit window, but more at the add phase when git user is preparing the commit. Ideally it would be nice to have a UI for the |
@sunix The widget will be able to switch between list mode and tree mode, like in 'git compare', when you have more than one changed files. All selected files and folders will be automatically added to index before commit, so there is no need to show if the file is staged or unstaged. |
@mterente Try Git -> Reset and choose 'Hard reset' radio button if you dont want to keep any changes from your previous commit. |
@vinokurig but if the developer uses |
@sunix The commit dialog will display all not committed changes, staged and unstated.The commit button will perform |
Remember to include a forced push as it's necessary in some rare cases. |
@vinokurig so for a file that is partially staged, will it be pre selected or not ? in both case it will be confusing. The problem is not if If you don't pre select at all what have been staged previously ... it is even more confusing ... personally will continue in using the command line :p |
@sunix : Partially staged files will not be handle at first in this task. If you already have staged files, they will be displayed with "staged" state. As part of a bigger UI/UX work, we'll consider moving to a complete "Git View" view where we can better handle staging and discarding lines as well. |
@slemeur What happens when it is "displayed" with "staged" state needs to be clarified.
That way, it will be less confusing and you don't change that much the logic and the UI. |
+1 I like this idea. @slemeur if you agree, I think we need to create separate issue for that. |
@wernight I think forced push should be placed in push window. The commit window should contain only minimum of push functionality. |
+vinokurig Sure if there is also a push dialog for more advanted pushed sure. |
As a secondary part of this, consider using indicators in the file explorer to show the current state of a file relative to the index. (This has certainly been an option within eclipse in the past.) |
Git commit window needs to be improved.
Proposal of the new Git commit window view:
Commit will be performed for files that are marked with the help of check-boxes.
Important! : For now we do not have possibility to paste check-boxes in tree widget, so we can have only a list of changed files with check boxes. 'Group by directory' button will not be implemented.
The text was updated successfully, but these errors were encountered: