diff options
author | Junio C Hamano <junkio@cox.net> | 2005-05-21 19:42:18 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-21 22:49:19 -0700 |
commit | 81e50eabf06dd68e8e62a9b697eaf60904c58b22 (patch) | |
tree | f7cf8566f2a72a669b6e4bbaca0cf6ca5a781dd3 /diffcore.h | |
parent | 38c6f78059c3060db6f94b24f4a90063a91090d2 (diff) | |
download | git-81e50eabf06dd68e8e62a9b697eaf60904c58b22.tar.gz |
[PATCH] The diff-raw format updates.
Update the diff-raw format as Linus and I discussed, except that
it does not use sequence of underscore '_' letters to express
nonexistence. All '0' mode is used for that purpose instead.
The new diff-raw format can express rename/copy, and the earlier
restriction that -M and -C _must_ be used with the patch format
output is no longer necessary. The patch makes -M and -C flags
independent of -p flag, so you need to say git-whatchanged -M -p
to get the diff/patch format.
Updated are both documentations and tests.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'diffcore.h')
-rw-r--r-- | diffcore.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/diffcore.h b/diffcore.h index 2938271511..5eca32afcc 100644 --- a/diffcore.h +++ b/diffcore.h @@ -26,7 +26,7 @@ struct diff_filespec { * if false, use the name and read from * the filesystem. */ - unsigned file_valid : 1; /* if false the file does not exist */ +#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 */ }; |