Skip to content

Commit aefa4a5

Browse files
author
Linus Torvalds
committed
git-apply: take "--apply" flag to force an apply even if we also ask for a diffstat
Also, remove debugging statement about applying a fragment at an offset.
1 parent 5fca669 commit aefa4a5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apply.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,6 @@ static int find_offset(const char *buf, unsigned long size, const char *fragment
860860
n = (i >> 1)+1;
861861
if (i & 1)
862862
n = -n;
863-
fprintf(stderr, "Fragment applied at offset %d\n", n);
864863
return try;
865864
}
866865

@@ -1434,6 +1433,10 @@ int main(int argc, char **argv)
14341433
check_index = 1;
14351434
continue;
14361435
}
1436+
if (!strcmp(arg, "--apply")) {
1437+
apply = 1;
1438+
continue;
1439+
}
14371440
if (!strcmp(arg, "--show-files")) {
14381441
show_files = 1;
14391442
continue;

0 commit comments

Comments
 (0)