summaryrefslogtreecommitdiff
path: root/contrib/completion/git-completion.tcsh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2014-12-01 13:57:28 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-12-01 13:57:28 -0800
commit21b138d0f64d99b55e901f90d4211e036b881e64 (patch)
tree82e157fbdfa7e26f59ff1c257f4847f2d234f4e8 /contrib/completion/git-completion.tcsh
parentt5516: more tests for receive.denyCurrentBranch=updateInstead (diff)
downloadtgif-21b138d0f64d99b55e901f90d4211e036b881e64.tar.xz
receive-pack: refactor updateInstead codepath
Keep the "there is nothing to update in a bare repository", "when the check and update process runs, here are the GIT_DIR and GIT_WORK_TREE" logic, which will be common regardless of how the decision to update and the actual update are done, in the original update_worktree() function, and split out the "working tree and the index must match the original HEAD exactly" and "use two-way read-tree to update the working tree" into a new push_to_deploy() helper function. This will allow customizing the logic more cleanly and easily. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/completion/git-completion.tcsh')
0 files changed, 0 insertions, 0 deletions