зеркало из https://github.com/microsoft/git.git
Merge branch 'ar/mailinfo-memcmp-to-skip-prefix'
Code clean-up. * ar/mailinfo-memcmp-to-skip-prefix: mailinfo: use starts_with() when checking scissors
This commit is contained in:
Коммит
c08e112b43
|
@ -705,8 +705,8 @@ static int is_scissors_line(const char *line)
|
|||
perforation++;
|
||||
continue;
|
||||
}
|
||||
if ((!memcmp(c, ">8", 2) || !memcmp(c, "8<", 2) ||
|
||||
!memcmp(c, ">%", 2) || !memcmp(c, "%<", 2))) {
|
||||
if (starts_with(c, ">8") || starts_with(c, "8<") ||
|
||||
starts_with(c, ">%") || starts_with(c, "%<")) {
|
||||
in_perforation = 1;
|
||||
perforation += 2;
|
||||
scissors += 2;
|
||||
|
|
Загрузка…
Ссылка в новой задаче