War on whitespace
This uses "git-apply --whitespace=strip" to fix whitespace errors that have crept in to our source files over time. There are a few files that need to have trailing whitespaces (most notably, test vectors). The results still passes the test, and build result in Documentation/ area is unchanged. Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
@ -114,7 +114,7 @@ static int fetch_pack(const unsigned char *sha1)
|
||||
return -1;
|
||||
target = find_sha1_pack(sha1, packs);
|
||||
if (!target)
|
||||
return error("Couldn't find %s: not separate or in any pack",
|
||||
return error("Couldn't find %s: not separate or in any pack",
|
||||
sha1_to_hex(sha1));
|
||||
if (get_verbosely) {
|
||||
fprintf(stderr, "Getting pack %s\n",
|
||||
@ -122,11 +122,11 @@ static int fetch_pack(const unsigned char *sha1)
|
||||
fprintf(stderr, " which contains %s\n",
|
||||
sha1_to_hex(sha1));
|
||||
}
|
||||
sprintf(filename, "%s/objects/pack/pack-%s.pack",
|
||||
sprintf(filename, "%s/objects/pack/pack-%s.pack",
|
||||
path, sha1_to_hex(target->sha1));
|
||||
copy_file(filename, sha1_pack_name(target->sha1),
|
||||
sha1_to_hex(target->sha1), 1);
|
||||
sprintf(filename, "%s/objects/pack/pack-%s.idx",
|
||||
sprintf(filename, "%s/objects/pack/pack-%s.idx",
|
||||
path, sha1_to_hex(target->sha1));
|
||||
copy_file(filename, sha1_pack_index_name(target->sha1),
|
||||
sha1_to_hex(target->sha1), 1);
|
||||
@ -141,7 +141,7 @@ static int fetch_file(const unsigned char *sha1)
|
||||
char *hex = sha1_to_hex(sha1);
|
||||
char *dest_filename = sha1_file_name(sha1);
|
||||
|
||||
if (object_name_start < 0) {
|
||||
if (object_name_start < 0) {
|
||||
strcpy(filename, path); /* e.g. git.git */
|
||||
strcat(filename, "/objects/");
|
||||
object_name_start = strlen(filename);
|
||||
|
Reference in New Issue
Block a user