commit - cc8dff2ee1ef0ddea980fd71c953692343f8c94b
commit + 3168e5da215c7b442d231f40bfd61df067505d8b
blob - 45468e19e41e08dc67438153100b3e1883d44e32
blob + 3a7013aa09b5952fd99ebb4cbf7e06235e769d42
--- got/got.c
+++ got/got.c
print_size = 1;
}
}
-
+
}
if (print_size || print_indexed || print_resolved)
printf("\r");
err = got_object_id_str(&id_str, id);
if (err)
goto done;
-
+
err = got_ref_delete(ref, repo);
if (err)
goto done;
blob - a309f6f15fc9d270685615ae0e7910508bb24085
blob + 4213eecf3f24478e6b4e70ecd6b5fb9e561eb0a6
--- lib/blame.c
+++ lib/blame.c
if (lineno < 1 || lineno > blame->nlines)
return NULL;
-
+
line = &blame->lines[lineno - 1];
if (line->annotated)
return NULL;
blob - 242372d5fc2f2242c9e3c1d00598c9dd2560da0a
blob + b6bb90438c1a0abf6b72d673caa50e7974b125f1
--- lib/inflate.c
+++ lib/inflate.c
/* Optimize buffer size in case short reads should suffice. */
if (expected_size > 0 && expected_size < bufsize)
bufsize = expected_size;
-
+
if (outbuf) {
*outbuf = malloc(bufsize);
if (*outbuf == NULL)
blob - 63a8b0da31d4514f9839334c64e7108fa41ab78b
blob + 7b91a1fa25baa5c2540acbd93a00945faba221c5
--- lib/privsep.c
+++ lib/privsep.c
while (*nremotes < iremotes.nremotes) {
struct got_remote_repo *remote;
-
+
err = got_privsep_recv_imsg(&imsg, ibuf, sizeof(iremote));
if (err)
break;
blob - b120196a4d400ea2d257c39efc48145d0508855e
blob + 803b58014d1ed3dce991365b1c035c4c54f45af9
--- lib/repository.c
+++ lib/repository.c
get_path_git_child(struct got_repository *repo, const char *basename)
{
char *path_child;
-
+
if (asprintf(&path_child, "%s/%s", repo->path_git_dir,
basename) == -1)
return NULL;
blob - 8b17f30cd730851996f1ead10c5747d64304d3cb
blob + 13359170cae7a6569ded8e800c1dd0a2e40fc048
--- libexec/got-fetch-pack/got-fetch-pack.c
+++ libexec/got-fetch-pack/got-fetch-pack.c
if (p)
*p = '\0';
}
-
+
return NULL;
}
SHA1_DIGEST_LENGTH);
sha1_buf_len = SHA1_DIGEST_LENGTH;
}
-
+
/* Write packfile data to temporary pack file. */
w = write(packfd, buf, r);
if (w == -1) {
blob - 60075c04efe69ab4514e49c8ffd6bf8c390eb6e0
blob + 45ca78c3e3b57ae16f0958484e421aa77db6b614
--- libexec/got-index-pack/got-index-pack.c
+++ libexec/got-index-pack/got-index-pack.c
"any of deltas; packfile could be corrupt");
err = got_error_msg(GOT_ERR_BAD_PACKFILE, msg);
goto done;
-
+
}
nresolved += n;
nvalid += nresolved;