aboutsummaryrefslogtreecommitdiff
path: root/diffcore.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-06-28 22:56:07 -0700
committerJunio C Hamano <gitster@pobox.com>2007-06-30 20:51:31 -0700
commit706098af6b53403b5ea3db9216fb99afbe06f52d (patch)
treed433db47ca354e5de3c229066e96c413ab33a976 /diffcore.h
parentd8c3d03a0b7f10977dd508a5a965a417b7f1b065 (diff)
downloadgit-706098af6b53403b5ea3db9216fb99afbe06f52d.tar.gz
git-706098af6b53403b5ea3db9216fb99afbe06f52d.tar.xz
diffcore_filespec: add is_binary
diffcore-break and diffcore-rename would want to behave slightly differently depending on the binary-ness of the data, so add one bit to the filespec, as the structure is now passed down to diffcore_count_changes() function. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diffcore.h')
-rw-r--r--diffcore.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/diffcore.h b/diffcore.h
index 990dec50f..0c8abb5b9 100644
--- a/diffcore.h
+++ b/diffcore.h
@@ -37,6 +37,7 @@ struct diff_filespec {
#define DIFF_FILE_VALID(spec) (((spec)->mode) != 0)
unsigned should_free : 1; /* data should be free()'ed */
unsigned should_munmap : 1; /* data should be munmap()'ed */
+ unsigned is_binary : 1; /* data should be considered "binary" */
};
extern struct diff_filespec *alloc_filespec(const char *);