diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-05-13 12:19:18 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-05-13 12:19:18 -0700 |
commit | 896833b2687ce09a4965e5b4f3992daad096a65b (patch) | |
tree | 5edc5ea6874a06b4f78856339b3fab204dcaaa96 /builtin/receive-pack.c | |
parent | The eighth batch (diff) | |
parent | shallow: use struct 'shallow_lock' for additional safety (diff) | |
download | tgif-896833b2687ce09a4965e5b4f3992daad096a65b.tar.xz |
Merge branch 'tb/shallow-cleanup'
Code cleanup.
* tb/shallow-cleanup:
shallow: use struct 'shallow_lock' for additional safety
shallow.h: document '{commit,rollback}_shallow_file'
shallow: extract a header file for shallow-related functions
commit: make 'commit_graft_pos' non-static
Diffstat (limited to 'builtin/receive-pack.c')
-rw-r--r-- | builtin/receive-pack.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin/receive-pack.c b/builtin/receive-pack.c index d37ab776b3..ea3d0f01af 100644 --- a/builtin/receive-pack.c +++ b/builtin/receive-pack.c @@ -28,6 +28,7 @@ #include "protocol.h" #include "commit-reach.h" #include "worktree.h" +#include "shallow.h" static const char * const receive_pack_usage[] = { N_("git receive-pack <git-dir>"), @@ -876,7 +877,7 @@ static void refuse_unconfigured_deny_delete_current(void) static int command_singleton_iterator(void *cb_data, struct object_id *oid); static int update_shallow_ref(struct command *cmd, struct shallow_info *si) { - struct lock_file shallow_lock = LOCK_INIT; + struct shallow_lock shallow_lock = SHALLOW_LOCK_INIT; struct oid_array extra = OID_ARRAY_INIT; struct check_connected_options opt = CHECK_CONNECTED_INIT; uint32_t mask = 1 << (cmd->index % 32); |