git/builtin
Stefan Beller d7a3803f9e 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>
2017-05-30 14:28:53 +09:00
..
add.c
am.c Merge branch 'rs/checkout-am-fix-unborn' 2017-05-23 13:46:05 +09:00
annotate.c
apply.c
archive.c
bisect--helper.c
blame.c
branch.c
bundle.c
cat-file.c
check-attr.c
check-ignore.c
check-mailmap.c
check-ref-format.c
checkout-index.c
checkout.c reset/checkout/read-tree: unify config callback for submodule recursion 2017-05-30 14:28:53 +09:00
clean.c
clone.c Merge branch 'jn/clone-add-empty-config-from-command-line' 2017-05-16 11:51:56 +09:00
column.c
commit-tree.c
commit.c
config.c
count-objects.c
credential.c
describe.c
diff-files.c
diff-index.c
diff-tree.c
diff.c
difftool.c
fast-export.c
fetch-pack.c
fetch.c
fmt-merge-msg.c
for-each-ref.c
fsck.c Merge branch 'js/larger-timestamps' 2017-05-16 11:51:59 +09:00
gc.c Merge branch 'js/larger-timestamps' 2017-05-16 11:51:59 +09:00
get-tar-commit-id.c
grep.c grep: assert that threading is enabled when calling grep_{lock,unlock} 2017-05-26 12:52:37 +09:00
hash-object.c
help.c
index-pack.c
init-db.c
interpret-trailers.c
log.c Merge branch 'ah/log-decorate-default-to-auto' 2017-05-23 13:46:03 +09:00
ls-files.c
ls-remote.c
ls-tree.c
mailinfo.c
mailsplit.c
merge-base.c
merge-file.c
merge-index.c
merge-ours.c
merge-recursive.c
merge-tree.c
merge.c
mktag.c
mktree.c
mv.c
name-rev.c
notes.c
pack-objects.c Merge branch 'ab/grep-preparatory-cleanup' into sb/submodule-blanket-recursive 2017-05-30 14:28:41 +09:00
pack-redundant.c
pack-refs.c
patch-id.c
prune-packed.c
prune.c
pull.c
push.c
read-tree.c reset/checkout/read-tree: unify config callback for submodule recursion 2017-05-30 14:28:53 +09:00
rebase--helper.c
receive-pack.c Merge branch 'jt/push-options-doc' 2017-05-23 13:46:07 +09:00
reflog.c
remote-ext.c
remote-fd.c
remote.c
repack.c
replace.c
rerere.c
reset.c reset/checkout/read-tree: unify config callback for submodule recursion 2017-05-30 14:28:53 +09:00
rev-list.c
rev-parse.c
revert.c
rm.c
send-pack.c
shortlog.c
show-branch.c
show-ref.c
stripspace.c
submodule--helper.c
symbolic-ref.c
tag.c
unpack-file.c
unpack-objects.c
update-index.c
update-ref.c
update-server-info.c
upload-archive.c
var.c
verify-commit.c
verify-pack.c
verify-tag.c
worktree.c Merge branch 'js/larger-timestamps' 2017-05-16 11:51:59 +09:00
write-tree.c