projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Change merge-cache and git-merge-one-file to use the SHA1 of the file
[git.git]
/
commit-tree.c
diff --git
a/commit-tree.c
b/commit-tree.c
index
93f3a57
..
cbb7d12
100644
(file)
--- a/
commit-tree.c
+++ b/
commit-tree.c
@@
-83,11
+83,11
@@
static void finish_buffer(char *tag, char **bufp, unsigned int *sizep)
static void remove_special(char *p)
{
char c;
- char *dst = p;
+ char *dst = p
, *src = p
;
for (;;) {
- c = *
p
;
-
p
++;
+ c = *
src
;
+
src
++;
switch(c) {
case '\n': case '<': case '>':
continue;