commit - 876c0ca2533c98617af0d98ce58f3541d05be3ea93e04de9b0bedd89cf6407a5
commit + 7563c72e2e41ada53a4ff42883e4a80831fc3f3018028386f44a2664ec502065
blob - 3cfb3b34a0fd6cfd2e2f1d99817913e4d49656aec77bd2042689784ec3f84530
blob + 89438e11c79bfb7723159f25d7f7895a3f47eaadd74fd475eb6eea95fa8491b6
--- gotd/repo_write.c
+++ gotd/repo_write.c
}
static const struct got_error *
-copy_offset_delta(int infd, int outfd, off_t *outsize, BUF *buf, size_t *buf_pos,
- struct got_hash *ctx)
+copy_offset_delta(int infd, int outfd, off_t *outsize, BUF *buf,
+ size_t *buf_pos, struct got_hash *ctx)
{
const struct got_error *err = NULL;
uint64_t o = 0;
if (ref_update->delete_ref)
continue;
- RB_FOREACH(pe, got_pathlist_head, repo_write.protected_tag_namespaces) {
+ RB_FOREACH(pe, got_pathlist_head,
+ repo_write.protected_tag_namespaces) {
err = protect_tag_namespace(pe->path, &client->pack,
packidx, ref_update);
if (err)
}
}
- RB_FOREACH(pe, got_pathlist_head, repo_write.protected_branch_namespaces)
- {
+ RB_FOREACH(pe, got_pathlist_head,
+ repo_write.protected_branch_namespaces) {
err = protect_branch_namespace(pe->path,
&client->pack, packidx, ref_update);
if (err)
goto done;
}
- RB_FOREACH(pe, got_pathlist_head, repo_write.protected_branches)
- {
+ RB_FOREACH(pe, got_pathlist_head,
+ repo_write.protected_branches) {
err = protect_branch(pe->path, &client->pack,
packidx, ref_update);
if (err)
return err;
}
- RB_FOREACH(pe, got_pathlist_head, repo_write.protected_branches)
- {
+ RB_FOREACH(pe, got_pathlist_head,
+ repo_write.protected_branches) {
if (strcmp(refname, pe->path) == 0) {
return got_error_fmt(GOT_ERR_REF_PROTECTED,
"%s", refname);
return err;
}
- RB_FOREACH(pe, got_pathlist_head, repo_write.protected_branches)
- {
+ RB_FOREACH(pe, got_pathlist_head,
+ repo_write.protected_branches) {
if (strcmp(refname, pe->path) == 0) {
return got_error_fmt(GOT_ERR_REF_PROTECTED,
"%s", refname);
int pad = dsa->max_path_len - pe->path_len + 1;
dprintf(fd, " %c %s%*c | %*d+ %*d-\n", cp->status,
- pe->path, pad, ' ', dsa->add_cols + 1, cp->add,
- dsa->rm_cols + 1, cp->rm);
+ pe->path, pad, ' ', dsa->add_cols + 1, cp->add,
+ dsa->rm_cols + 1, cp->rm);
}
dprintf(fd,
"\n%d file%s changed, %d insertion%s(+), %d deletion%s(-)\n\n",
}
if (!shut && check_cancelled(NULL) == NULL) {
- if (err &&
- gotd_imsg_send_error_event(iev, PROC_REPO_WRITE,
- client->id, err) == -1) {
+ if (err && gotd_imsg_send_error_event(iev, PROC_REPO_WRITE,
+ client->id, err) == -1) {
log_warnx("could not send error to parent: %s",
err->msg);
}