Bug 442146 - Add "Replace with Index" option
Summary: Add "Replace with Index" option
Status: NEW
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows NT
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-20 05:15 EDT by Ed Willink CLA
Modified: 2019-01-24 06:13 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Willink CLA 2014-08-20 05:15:01 EDT
When the staging view shows some staged files and some unstaged files, it would be helpful if for the unstaged files a "Replace with INdex" option was available.

Using "Replace with Head" can have the unfortunate consequence of creating an unstaged file that reverses the useful edits already staged.

Using "Replace with Index" would avoid this.

It might even be worth suppressing the Replace with Head option if there is a staged version of an unstaged file, or at least requiring a confirmatory pop-up.
Comment 1 Mykola Nikishov CLA 2015-06-30 15:54:39 EDT
[Batch change] Remove pre-3.7 Target Milestones

If anyone on CC list is going to fix/implement this, please assign a new 3.7+ target milestone.
Comment 2 Ed Willink CLA 2019-01-24 06:10:00 EST
Still a problem.

Use case, I want to revert all my unstaged files after an experimental auto-generation. i.e. use index where possible, head otherwise. Not possible.

And worse, if a staged file is DNDed to the unstaged area, the unstgaed file is not changed; the staged edits are discarded.
Comment 3 Ed Willink CLA 2019-01-24 06:13:09 EST
(In reply to Ed Willink from comment #2)
> Use index where possible, head otherwise.

"Replace with Staged" would be clearer, and much more useful than "Replace with Head".