summaryrefslogtreecommitdiff
path: root/show-index.c
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2015-01-08 03:23:15 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-01-08 03:56:42 (GMT)
commita6a843196869659ee55238e474be29018987c4bf (patch)
treea941a1c70446afa9c9f198b7fc349adfdc9bcfd1 /show-index.c
parentc653e0343d04ba89040c8ba18d7ca2e55ece6338 (diff)
downloadgit-a6a843196869659ee55238e474be29018987c4bf.zip
git-a6a843196869659ee55238e474be29018987c4bf.tar.gz
git-a6a843196869659ee55238e474be29018987c4bf.tar.bz2
receive-pack.c: shorten the execute_commands loop over all commands
Make the main "execute_commands" loop in receive-pack easier to read by splitting out some steps into helper functions. The new helper 'should_process_cmd' checks if a ref update is unnecessary, whether due to an error having occurred or for another reason. The helper 'warn_if_skipped_connectivity_check' warns if we have forgotten to run a connectivity check on a ref which is shallow for the client which would be a bug. This will help us to duplicate less code in a later patch when we make a second copy of the "execute_commands" loop. No functional change intended. Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'show-index.c')
0 files changed, 0 insertions, 0 deletions