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:
3
config.c
3
config.c
@ -621,7 +621,7 @@ static ssize_t find_beginning_of_line(const char* contents, size_t size,
|
||||
size_t equal_offset = size, bracket_offset = size;
|
||||
ssize_t offset;
|
||||
|
||||
for (offset = offset_-2; offset > 0
|
||||
for (offset = offset_-2; offset > 0
|
||||
&& contents[offset] != '\n'; offset--)
|
||||
switch (contents[offset]) {
|
||||
case '=': equal_offset = offset; break;
|
||||
@ -989,4 +989,3 @@ int git_config_rename_section(const char *old_name, const char *new_name)
|
||||
free(config_filename);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user