diff options
| author | Junio C Hamano <gitster@pobox.com> | 2012-04-26 10:35:33 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2012-04-26 10:35:33 -0700 |
| commit | 3f231e235fb4b9c4d937a50fa4fbf35f9ed10387 (patch) | |
| tree | 6f064ed970aa6363222824e2899681c383544c2d /diff.h | |
| parent | 10a20b43c3d03ea1fab9095f96eda66086d3dcd2 (diff) | |
| parent | 4f7cb99ada26be5d86402a6e060f3ee16a672f16 (diff) | |
| download | git-3f231e235fb4b9c4d937a50fa4fbf35f9ed10387.tar.xz | |
Merge branch 'jk/diff-no-rename-empty' into maint
Rename detection logic used to match two empty files as renames during
merge-recursive, leading unnatural mismerges.
By Jeff King
* jk/diff-no-rename-empty:
merge-recursive: don't detect renames of empty files
teach diffcore-rename to optionally ignore empty content
make is_empty_blob_sha1 available everywhere
drop casts from users EMPTY_TREE_SHA1_BIN
Diffstat (limited to 'diff.h')
| -rw-r--r-- | diff.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -60,7 +60,7 @@ typedef struct strbuf *(*diff_prefix_fn_t)(struct diff_options *opt, void *data) #define DIFF_OPT_SILENT_ON_REMOVE (1 << 5) #define DIFF_OPT_FIND_COPIES_HARDER (1 << 6) #define DIFF_OPT_FOLLOW_RENAMES (1 << 7) -/* (1 << 8) unused */ +#define DIFF_OPT_RENAME_EMPTY (1 << 8) /* (1 << 9) unused */ #define DIFF_OPT_HAS_CHANGES (1 << 10) #define DIFF_OPT_QUICK (1 << 11) |
