commit - c42b7609faa2e9d1f7c0a1b59fe2303f05ddaa22
commit + 90dfaa0114b254eff2147735ed23dca09b571635
blob - 00e51397517abfc6beb72abdf282b49321818416
blob + d62256a1b20427e1dd67b05242a133f23a7ee0ea
--- gotd/session.c
+++ gotd/session.c
}
static const struct got_error *
-prepare_notification(struct got_object_id *old_id, struct got_object_id *new_id,
+queue_notification(struct got_object_id *old_id, struct got_object_id *new_id,
struct got_repository *repo, struct got_reference *ref)
{
const struct got_error *err = NULL;
err = got_ref_write(ref, repo); /* will lock/unlock */
if (err)
goto done;
- err = prepare_notification(NULL, &new_id, repo, ref);
+ err = queue_notification(NULL, &new_id, repo, ref);
if (err)
goto done;
} else {
err = got_ref_delete(ref, repo);
if (err)
goto done;
- err = prepare_notification(&old_id, NULL, repo, ref);
+ err = queue_notification(&old_id, NULL, repo, ref);
if (err)
goto done;
free(id);
err = got_ref_write(ref, repo);
if (err)
goto done;
- err = prepare_notification(&old_id, &new_id, repo, ref);
+ err = queue_notification(&old_id, &new_id, repo, ref);
if (err)
goto done;
}