projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make 'fsck' able to take an arbitrary number of parents on the
[git.git]
/
commit-tree.c
diff --git
a/commit-tree.c
b/commit-tree.c
index
352ded1
..
ac431fe
100644
(file)
--- a/
commit-tree.c
+++ b/
commit-tree.c
@@
-41,7
+41,7
@@
static void add_buffer(char **bufp, unsigned int *sizep, const char *fmt, ...)
alloc = (size + 32767) & ~32767;
buf = *bufp;
if (newsize > alloc) {
alloc = (size + 32767) & ~32767;
buf = *bufp;
if (newsize > alloc) {
- alloc = (newsize + 32767) & ~32767;
+ alloc = (newsize + 32767) & ~32767;
buf = realloc(buf, alloc);
*bufp = buf;
}
buf = realloc(buf, alloc);
*bufp = buf;
}
@@
-135,7
+135,7
@@
int main(int argc, char **argv)
fprintf(stderr, "Committing initial tree %s\n", argv[1]);
pw = getpwuid(getuid());
if (!pw)
fprintf(stderr, "Committing initial tree %s\n", argv[1]);
pw = getpwuid(getuid());
if (!pw)
-
usag
e("You don't exist. Go away!");
+
di
e("You don't exist. Go away!");
realgecos = pw->pw_gecos;
len = strlen(pw->pw_name);
memcpy(realemail, pw->pw_name, len);
realgecos = pw->pw_gecos;
len = strlen(pw->pw_name);
memcpy(realemail, pw->pw_name, len);