Code

git-gui: Allow adding untracked files in selection.
authorShawn O. Pearce <spearce@spearce.org>
Sun, 19 Nov 2006 02:33:04 +0000 (21:33 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 19 Nov 2006 03:46:07 +0000 (22:46 -0500)
commit54896cf7c150038bd286b909897673f85c691abc
tree35a15aeeacd99a90902bbb0a551ecf1bcc63c710
parentbca680b054ffa736e876075fad358bee1caa898a
git-gui: Allow adding untracked files in selection.

The previous implementation of do_include_selection did not actually
add files in state _O (untracked, not added) into the repository when
they were in the selection and Commit->Include Selected Files was used.
This was due to the file state filtering logic being the same as that
of Commit->Include All Files, which only considers existing files.

Also fixed a minor issue with rejected attempts to amend an initial
commit.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui