Merge branch 'jl/maint-diff-ignore-submodules' into next

* jl/maint-diff-ignore-submodules:
  Add optional parameters to the diff option "--ignore-submodules"
  git diff: rename test that had a conflicting name
This commit is contained in:
Junio C Hamano
2010-06-23 10:56:35 -07:00
6 changed files with 118 additions and 6 deletions

1
diff.h
View File

@@ -74,6 +74,7 @@ typedef struct strbuf *(*diff_prefix_fn_t)(struct diff_options *opt, void *data)
#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_IGNORE_DIRTY_SUBMODULES (1 << 26)
#define DIFF_OPT_TST(opts, flag) ((opts)->flags & DIFF_OPT_##flag)
#define DIFF_OPT_SET(opts, flag) ((opts)->flags |= DIFF_OPT_##flag)