projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
diff-tree -c: show a merge commit a bit more sensibly.
[git.git]
/
tar-tree.c
diff --git
a/tar-tree.c
b/tar-tree.c
index
bacb23a
..
f749d4b
100644
(file)
--- a/
tar-tree.c
+++ b/
tar-tree.c
@@
-34,10
+34,8
@@
struct path_prefix {
static void reliable_write(void *buf, unsigned long size)
{
while (size > 0) {
static void reliable_write(void *buf, unsigned long size)
{
while (size > 0) {
- long ret = write(1, buf, size);
+ long ret =
x
write(1, buf, size);
if (ret < 0) {
if (ret < 0) {
- if (errno == EAGAIN)
- continue;
if (errno == EPIPE)
exit(0);
die("git-tar-tree: %s", strerror(errno));
if (errno == EPIPE)
exit(0);
die("git-tar-tree: %s", strerror(errno));
@@
-435,7
+433,7
@@
int main(int argc, char **argv)
archive_time = time(NULL);
if (basedir)
write_header((unsigned char *)"0", TYPEFLAG_DIR, NULL, NULL,
archive_time = time(NULL);
if (basedir)
write_header((unsigned char *)"0", TYPEFLAG_DIR, NULL, NULL,
- basedir, 0407
55
, NULL, 0);
+ basedir, 0407
77
, NULL, 0);
traverse_tree(buffer, size, NULL);
free(buffer);
write_trailer();
traverse_tree(buffer, size, NULL);
free(buffer);
write_trailer();