git-gui: Add menu option to include only selected files.
commitc4ed879fc2b64b6c6f8a42bd156b2e4bd18e9420
authorShawn O. Pearce <spearce@spearce.org>
Sat, 18 Nov 2006 08:24:20 +0000 (18 03:24 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Sat, 18 Nov 2006 08:24:20 +0000 (18 03:24 -0500)
treef637e8c5a34594c0949aa84aff38651698a46593
parentb67651129897738496a9dcd3c01129a42acd11db
git-gui: Add menu option to include only selected files.

When the user selects a number of files they would typically expect
to be able to act on that selection, such as by including those files
into the next commit.

So we now have a menu option under the Commit menu that lets the user
include only the selection, rather than everything.  If there is no
selection but there is a file in the diff viewer than we consider that
to be the selection (a selection of 1).  Unfortunately we don't disable
this option yet when there's nothing selected to include, but this is
probably not a big deal as there are very few situations where there
are no selected files.

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