diff options
author | Jens Lehmann <Jens.Lehmann@web.de> | 2010-03-13 23:00:27 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-03-13 21:56:35 -0800 |
commit | 3bfc45047654c7dd38b32033321228e97fc8f60e (patch) | |
tree | 6899c722253819b7d29aa7abb7e0ac7716fa9079 /diff.h | |
parent | 85adbf2f751a91429de6b431c45737ba9d7e9e00 (diff) | |
download | git-3bfc45047654c7dd38b32033321228e97fc8f60e.tar.gz |
git status: ignoring untracked files must apply to submodules too
Since 1.7.0 submodules are considered dirty when they contain untracked
files. But when git status is called with the "-uno" option, the user
asked to ignore untracked files, so they must be ignored in submodules
too. To achieve this, the new flag DIFF_OPT_IGNORE_UNTRACKED_IN_SUBMODULES
is introduced.
Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.h')
-rw-r--r-- | diff.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -70,6 +70,7 @@ typedef void (*diff_format_fn_t)(struct diff_queue_struct *q, #define DIFF_OPT_DIFF_FROM_CONTENTS (1 << 22) #define DIFF_OPT_SUBMODULE_LOG (1 << 23) #define DIFF_OPT_DIRTY_SUBMODULES (1 << 24) +#define DIFF_OPT_IGNORE_UNTRACKED_IN_SUBMODULES (1 << 25) #define DIFF_OPT_TST(opts, flag) ((opts)->flags & DIFF_OPT_##flag) #define DIFF_OPT_SET(opts, flag) ((opts)->flags |= DIFF_OPT_##flag) |