commit_ref 3481 refs.c if (commit_ref(lock)) { commit_ref 4648 refs.c } else if (update && commit_ref(lock)) {