projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fca669
)
git-apply: take "--apply" flag to force an apply even if we also ask for a diffstat
author
Linus Torvalds
<torvalds@ppc970.osdl.org>
Thu, 23 Jun 2005 16:00:01 +0000
(09:00 -0700)
committer
Linus Torvalds
<torvalds@ppc970.osdl.org>
Thu, 23 Jun 2005 16:00:01 +0000
(09:00 -0700)
Also, remove debugging statement about applying a fragment at an offset.
apply.c
patch
|
blob
|
history
diff --git
a/apply.c
b/apply.c
index
31f134c
..
c81b0a2
100644
(file)
--- a/
apply.c
+++ b/
apply.c
@@
-860,7
+860,6
@@
static int find_offset(const char *buf, unsigned long size, const char *fragment
n = (i >> 1)+1;
if (i & 1)
n = -n;
- fprintf(stderr, "Fragment applied at offset %d\n", n);
return try;
}
@@
-1434,6
+1433,10
@@
int main(int argc, char **argv)
check_index = 1;
continue;
}
+ if (!strcmp(arg, "--apply")) {
+ apply = 1;
+ continue;
+ }
if (!strcmp(arg, "--show-files")) {
show_files = 1;
continue;