| Summary: | untracking a file present in HEAD can't be committed using commit dialog | ||
|---|---|---|---|
| Product: | [Technology] EGit | Reporter: | Matthias Sohn <matthias.sohn> |
| Component: | UI | Assignee: | Matthias Sohn <matthias.sohn> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | ed, joshua.lester, kane.mx, kane.zhu, mn, zanetu |
| Version: | 1.2 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
|
Description
Matthias Sohn
first round of debugging revealed that - untrack correctly removes the file to be untracked from the index - but CommitOperation.addUntracked() adds it again to the index since it doesn't check if the file is present in HEAD and hence erroneously concludes that the untracked file should be staged - maybe we should pass the IndexDiff into the CommitOperation to provide the more detailed information needed there proposed egit fix http://egit.eclipse.org/r/#change,4598 and jgit fix http://egit.eclipse.org/r/#change,4597 for review [Batch change] Remove passed Target Milestones If anyone on CC list is going to fix/implement this, feel free to assign a new, post-1.3/2.0, target milestone. This is hard to fix since the commit dialog uses jgit's equivalent of commit -o and according to the git reference documentation "commit -o" explicitly ignores the index state so we need a different way to commit untracked files using the commit dialog. I'd rather try to get rid of the non-gitish commit dialog instead of fixing this. I am only using the staging view to create commits these days. Hence closing this bug as won't fix, feel free to reopen if you intend to spend the effort to rewrite the commit dialog. since 4.3 the "Commit..." action by default opens the Staging View and no longer the commit dialog. The commit dialog can still be reenabled by unsetting the preference "Team > Git > Committing > Use Staging View for committing instead of Commit Dialog" |