commit 3168e5da215c7b442d231f40bfd61df067505d8b from: Stefan Sperling date: Thu Sep 10 00:10:55 2020 UTC zap trailing tabs commit - cc8dff2ee1ef0ddea980fd71c953692343f8c94b commit + 3168e5da215c7b442d231f40bfd61df067505d8b blob - 45468e19e41e08dc67438153100b3e1883d44e32 blob + 3a7013aa09b5952fd99ebb4cbf7e06235e769d42 --- got/got.c +++ got/got.c @@ -876,7 +876,7 @@ fetch_progress(void *arg, const char *message, off_t p print_size = 1; } } - + } if (print_size || print_indexed || print_resolved) printf("\r"); @@ -1637,7 +1637,7 @@ delete_missing_ref(struct got_reference *ref, 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 @@ -63,7 +63,7 @@ annotate_line(struct got_blame *blame, int lineno, str 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 @@ -329,7 +329,7 @@ got_inflate_to_mem_fd(uint8_t **outbuf, size_t *outlen /* 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 @@ -1828,7 +1828,7 @@ got_privsep_recv_gitconfig_remotes(struct got_remote_r 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 @@ -117,7 +117,7 @@ static char * 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 @@ -346,7 +346,7 @@ parse_refline(char **id_str, char **refname, char **se if (p) *p = '\0'; } - + return NULL; } @@ -1057,7 +1057,7 @@ fetch_pack(int fd, int packfd, uint8_t *pack_sha1, 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 @@ -893,7 +893,7 @@ index_pack(struct got_pack *pack, int idxfd, FILE *tmp "any of deltas; packfile could be corrupt"); err = got_error_msg(GOT_ERR_BAD_PACKFILE, msg); goto done; - + } nresolved += n; nvalid += nresolved;