summaryrefslogtreecommitdiff
path: root/git.rc
diff options
context:
space:
mode:
authorLibravatar Stefan Beller <sbeller@google.com>2017-05-26 12:10:12 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-05-30 14:28:53 +0900
commitd7a3803f9e83242adac0f02af843ef0520c71f0a (patch)
tree8bf2a8812f7529fdb56606719db8e674fdf47d09 /git.rc
parentsubmodule test invocation: only pass additional arguments (diff)
downloadtgif-d7a3803f9e83242adac0f02af843ef0520c71f0a.tar.xz
reset/checkout/read-tree: unify config callback for submodule recursion
The callback function is essentially duplicated 3 times. Remove all of them and offer a new callback function, that lives in submodule.c By putting the callback function there, we no longer need the function 'set_config_update_recurse_submodules', nor duplicate the global variable in each builtin as well as submodule.c In the three builtins we have different 2 ways how to load the .gitmodules and config file, which are slightly different. git-checkout has to load the submodule config all the time due to 23b4c7bcc5 (checkout: Use submodule.*.ignore settings from .git/config and .gitmodules, 2010-08-28) git-reset and git-read-tree do not respect these diff settings, so loading the submodule configuration is optional. Also put that into submodule.c for code deduplication. Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git.rc')
0 files changed, 0 insertions, 0 deletions