diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-02-27 11:55:28 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-02-27 11:55:28 -0800 |
commit | 860cc3a4f9c3ac21fcd37bbe30f40ab073f01299 (patch) | |
tree | 72954a742c39d14c6cc44e5524b215abab4dc7bd /diff.h | |
parent | b82b096b8c3a29ad5115483cc8e8a433e26703ee (diff) | |
parent | c0cb4a067972700f0682fbab13768bcc7dc7a3c3 (diff) | |
download | git-860cc3a4f9c3ac21fcd37bbe30f40ab073f01299.tar.gz git-860cc3a4f9c3ac21fcd37bbe30f40ab073f01299.tar.xz |
Merge branch 'jc/diff-relative'
* jc/diff-relative:
diff --relative: help working in a bare repository
diff --relative: output paths as relative to the current subdirectory
Diffstat (limited to 'diff.h')
-rw-r--r-- | diff.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -62,6 +62,7 @@ typedef void (*diff_format_fn_t)(struct diff_queue_struct *q, #define DIFF_OPT_EXIT_WITH_STATUS (1 << 14) #define DIFF_OPT_REVERSE_DIFF (1 << 15) #define DIFF_OPT_CHECK_FAILED (1 << 16) +#define DIFF_OPT_RELATIVE_NAME (1 << 17) #define DIFF_OPT_TST(opts, flag) ((opts)->flags & DIFF_OPT_##flag) #define DIFF_OPT_SET(opts, flag) ((opts)->flags |= DIFF_OPT_##flag) #define DIFF_OPT_CLR(opts, flag) ((opts)->flags &= ~DIFF_OPT_##flag) @@ -85,6 +86,8 @@ struct diff_options { int dirstat_percent; int setup; int abbrev; + const char *prefix; + int prefix_length; const char *msg_sep; const char *stat_sep; long xdl_opts; |