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.
This commit is contained in:
5
apply.c
5
apply.c
@ -860,7 +860,6 @@ static int find_offset(const char *buf, unsigned long size, const char *fragment
|
|||||||
n = (i >> 1)+1;
|
n = (i >> 1)+1;
|
||||||
if (i & 1)
|
if (i & 1)
|
||||||
n = -n;
|
n = -n;
|
||||||
fprintf(stderr, "Fragment applied at offset %d\n", n);
|
|
||||||
return try;
|
return try;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1434,6 +1433,10 @@ int main(int argc, char **argv)
|
|||||||
check_index = 1;
|
check_index = 1;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (!strcmp(arg, "--apply")) {
|
||||||
|
apply = 1;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (!strcmp(arg, "--show-files")) {
|
if (!strcmp(arg, "--show-files")) {
|
||||||
show_files = 1;
|
show_files = 1;
|
||||||
continue;
|
continue;
|
||||||
|
Reference in New Issue
Block a user