| Summary: | Feature Request: Partial Staging | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Technology] EGit | Reporter: | Matthias Brandt <mb> | ||||
| Component: | UI | Assignee: | Project Inbox <egit.ui-inbox> | ||||
| Status: | RESOLVED WORKSFORME | QA Contact: | |||||
| Severity: | major | ||||||
| Priority: | P3 | CC: | remy.suen | ||||
| Version: | 1.1 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
When you open the 'Git Staging' view, you can open a compare editor and then move a diff from your working directory into the index. Does this satisfy your need? Cool! Thank you very much! Hi, after working a little bit with the Staging View, i realized that you can only add a complete "change", but not single lines of this "change". For example: You have added a function to a file, but you only want to commit the defintion, but not the body of this function. This usecase is rare, i know. So you might set this feature as low-prio. (In reply to comment #3) > after working a little bit with the Staging View, i realized that you can only > add a complete "change", but not single lines of this "change". This should be possible, Matthias. 1. Double-click on a file that has changes but is unstaged. 2. Use the tool item inside the compare editor to bring a change from the left to the right. 3. Ctrl+S to save. 4. That partial change should now be in the staged area. Does this work for you? No: I can select single changes, but no single lines inside a change... (In reply to comment #5) > No: I can select single changes, but no single lines inside a change... Ah, okay, I see what you mean now. The editor on the right-hand side should be editable so you can copy/paste your single-line changes there as a temporary workaround. I see. This workaround is maybe enough, because the usecase is rare, in my opinion... |
Created attachment 205183 [details] Screenshot of git gui while selecting a line for commit. Hi, I like git very much because of its ability to make partial staging: When I finish a task, I can split my work into small commits. git-gui (Tcl) or GitX (Mac) both support this feature: You can choose, which lines of your files should be added to a commit. Can you please implement this feature for EGit, too? I would be very happy, to use Git in my favourite IDE.