git-gui: Add gui.displayuntracked option
commite632b3c0d37e5f61012dad6bb44c9a2a53a69f67
authorMax Kirillov <max@max630.net>
Wed, 21 Aug 2013 03:29:13 +0000 (21 06:29 +0300)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Tue, 27 Aug 2013 19:06:42 +0000 (27 20:06 +0100)
tree9b48848a49387e681629988b4592221e414eecbd
parentd478056c7dcc2aab690edf0036238e761c789007
git-gui: Add gui.displayuntracked option

When git is used to track only a subset of a directory, or
there is no sure way to divide files to ignore from files to track,
git user have to live with large number of untracked files. These files
present in file list, and should always be scrolled through
to handle real changes. Situation can become even worse, then number
of the untracked files grows above the maxfilesdisplayed limit. In the
case, even staged can be hidden by git-gui.

This change introduces new configuration variable gui.displayuntracked,
which, when set to false, instructs git-gui not to show untracked files
in files list. They can be staged from commandline or other tools (like
IDE of file manager), then they become visible. Default value of the
option is true, which is compatible with current behavior.

Signed-off-by: Max Kirillov <max@max630.net>
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
git-gui.sh
lib/option.tcl