|
|
|
@ -104,7 +104,7 @@ struct cache_entry {
@@ -104,7 +104,7 @@ struct cache_entry {
|
|
|
|
|
unsigned int ce_size; |
|
|
|
|
unsigned char sha1[20]; |
|
|
|
|
unsigned short ce_flags; |
|
|
|
|
char name[]; |
|
|
|
|
char name[0]; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
#define CE_NAMEMASK (0x0fff) |
|
|
|
@ -287,7 +287,7 @@ extern int checkout_entry(struct cache_entry *ce, struct checkout *state);
@@ -287,7 +287,7 @@ extern int checkout_entry(struct cache_entry *ce, struct checkout *state);
|
|
|
|
|
extern struct alternate_object_database { |
|
|
|
|
struct alternate_object_database *next; |
|
|
|
|
char *name; |
|
|
|
|
char base[]; /* more */ |
|
|
|
|
char base[0]; /* more */ |
|
|
|
|
} *alt_odb_list; |
|
|
|
|
extern void prepare_alt_odb(void); |
|
|
|
|
|
|
|
|
@ -300,7 +300,7 @@ extern struct packed_git {
@@ -300,7 +300,7 @@ extern struct packed_git {
|
|
|
|
|
unsigned int pack_last_used; |
|
|
|
|
unsigned int pack_use_cnt; |
|
|
|
|
unsigned char sha1[20]; |
|
|
|
|
char pack_name[]; /* something like ".git/objects/pack/xxxxx.pack" */ |
|
|
|
|
char pack_name[0]; /* something like ".git/objects/pack/xxxxx.pack" */ |
|
|
|
|
} *packed_git; |
|
|
|
|
|
|
|
|
|
struct pack_entry { |
|
|
|
@ -315,7 +315,7 @@ struct ref {
@@ -315,7 +315,7 @@ struct ref {
|
|
|
|
|
unsigned char new_sha1[20]; |
|
|
|
|
unsigned char force; |
|
|
|
|
struct ref *peer_ref; /* when renaming */ |
|
|
|
|
char name[]; |
|
|
|
|
char name[0]; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
extern int git_connect(int fd[2], char *url, const char *prog); |
|
|
|
|