From: Junio C Hamano Date: Sun, 19 Feb 2006 06:55:42 +0000 (-0800) Subject: Merge fixes up to GIT 1.2.2 X-Git-Tag: v1.3.0-rc1~192 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/709a9e5771ddb32995df6a0622e5d643baa4487a?ds=inline;hp=-c Merge fixes up to GIT 1.2.2 --- 709a9e5771ddb32995df6a0622e5d643baa4487a diff --combined rev-parse.c index 9161faed1e,70a82714ca..a5fb93c3ca --- a/rev-parse.c +++ b/rev-parse.c @@@ -48,7 -48,6 +48,7 @@@ static int is_rev_argument(const char * "--show-breaks", "--sparse", "--topo-order", + "--date-order", "--unpacked", NULL }; @@@ -226,12 -225,12 +226,12 @@@ int main(int argc, char **argv continue; } if (!strcmp(arg, "--short") || - !strncmp(arg, "--short=", 9)) { + !strncmp(arg, "--short=", 8)) { filter &= ~(DO_FLAGS|DO_NOREV); verify = 1; abbrev = DEFAULT_ABBREV; - if (arg[8] == '=') - abbrev = strtoul(arg + 9, NULL, 10); + if (arg[7] == '=') + abbrev = strtoul(arg + 8, NULL, 10); if (abbrev < MINIMUM_ABBREV) abbrev = MINIMUM_ABBREV; else if (40 <= abbrev) diff --combined sha1_file.c index 64cf245418,f08b1d6ee8..1d799f793a --- a/sha1_file.c +++ b/sha1_file.c @@@ -551,8 -551,10 +551,10 @@@ static void prepare_packed_git_one(cha sprintf(path, "%s/pack", objdir); len = strlen(path); dir = opendir(path); - if (!dir) + if (!dir) { + fprintf(stderr, "unable to open object pack directory: %s: %s\n", path, strerror(errno)); return; + } path[len++] = '/'; while ((de = readdir(dir)) != NULL) { int namelen = strlen(de->d_name); @@@ -830,7 -832,7 +832,7 @@@ void packed_object_info_detail(struct p char *type, unsigned long *size, unsigned long *store_size, - int *delta_chain_length, + unsigned int *delta_chain_length, unsigned char *base_sha1) { struct packed_git *p = e->p; @@@ -844,7 -846,7 +846,7 @@@ if (kind != OBJ_DELTA) *delta_chain_length = 0; else { - int chain_length = 0; + unsigned int chain_length = 0; memcpy(base_sha1, pack, 20); do { struct pack_entry base_ent;