diff: convert struct combine_diff_path to object_id
Also, convert a constant to GIT_SHA1_HEXSZ. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
fa33c3aae2
commit
1ff57c13c5
5
diff.h
5
diff.h
@ -6,6 +6,7 @@
|
||||
|
||||
#include "tree-walk.h"
|
||||
#include "pathspec.h"
|
||||
#include "object.h"
|
||||
|
||||
struct rev_info;
|
||||
struct diff_options;
|
||||
@ -207,11 +208,11 @@ struct combine_diff_path {
|
||||
struct combine_diff_path *next;
|
||||
char *path;
|
||||
unsigned int mode;
|
||||
unsigned char sha1[20];
|
||||
struct object_id oid;
|
||||
struct combine_diff_parent {
|
||||
char status;
|
||||
unsigned int mode;
|
||||
unsigned char sha1[20];
|
||||
struct object_id oid;
|
||||
} parent[FLEX_ARRAY];
|
||||
};
|
||||
#define combine_diff_path_size(n, l) \
|
||||
|
||||
Reference in New Issue
Block a user