author | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 19 Nov 2006 02:33:04 +0000 (21:33 -0500) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 19 Nov 2006 03:46:07 +0000 (22:46 -0500) | ||
commit | 54896cf7c150038bd286b909897673f85c691abc | |
tree | 35a15aeeacd99a90902bbb0a551ecf1bcc63c710 | tree | snapshot |
parent | bca680b054ffa736e876075fad358bee1caa898a | commit | diff |
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>
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 | diff | blob | history |