Uses filesystem, index, and HEAD to to show changed files for commit
commit7b464dc60883c16e82adf242e404f5143b98229a
authorDave Watson <dwatson@mimvista.com>
Mon, 25 Jun 2007 03:02:34 +0000 (24 23:02 -0400)
committerDave Watson <dwatson@mimvista.com>
Wed, 27 Jun 2007 13:43:33 +0000 (27 09:43 -0400)
tree6947619d356ad1252ce8ef9315f795f8c9732a53
parent6cbcdc702b6fe390e2b30021185b5ec53913702f
Uses filesystem, index, and HEAD to to show changed files for commit

Look at the entire index, compared with the disk and HEAD, to populate the
dialog, then use that selected info to perform the tree modifications.

* Keep track of which files are in index vs not in index. Index takes
  precedence.
* IndexDiff examines the index to see if there have been any files removed
  on the paths we're looking at.
* Add the selected non-indexed files to the index.

For files that are changed from HEAD in the index, and also different
from that on the disk, we pick the changes in the index. Next will be to
add a context-menu option to update those files in index.

Signed-off-by: Dave Watson <dwatson@mimvista.com>
org.spearce.egit.ui/src/org/spearce/egit/ui/internal/actions/CommitAction.java
org.spearce.egit.ui/src/org/spearce/egit/ui/internal/dialogs/CommitDialog.java
org.spearce.jgit/src/org/spearce/jgit/lib/GitIndex.java
org.spearce.jgit/src/org/spearce/jgit/lib/IndexDiff.java