Add an optional <mode> argument to commit/status -u|--untracked-files option

This lets you specify how you want untracked files to be listed.
The possible options are:

    normal - Show untracked files and directories
    all    - Show all untracked files

The 'all' mode is used, if the mode is not specified.

Signed-off-by: Marius Storm-Olsen <marius@trolltech.com>
This commit is contained in:
Marius Storm-Olsen
2008-06-05 10:31:19 +02:00
committed by Junio C Hamano
parent 03300c0ac0
commit 4bfee30a98
5 changed files with 92 additions and 10 deletions

View File

@ -27,6 +27,7 @@ static const char use_add_rm_msg[] =
"use \"git add/rm <file>...\" to update what will be committed";
static const char use_add_to_include_msg[] =
"use \"git add <file>...\" to include in what will be committed";
enum untracked_status_type show_untracked_files = SHOW_NORMAL_UNTRACKED_FILES;
static int parse_status_slot(const char *var, int offset)
{