summaryrefslogtreecommitdiff
path: root/t/t4100
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2015-05-01 18:44:41 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-05-03 11:42:28 -0700
commite41bf352e3280e6990605a18ebbbd40c6f1c0d6d (patch)
tree4c32388bd1e305fe195a3f10d232a8f10735dabf /t/t4100
parentGit 2.4.0-rc0 (diff)
downloadtgif-e41bf352e3280e6990605a18ebbbd40c6f1c0d6d.tar.xz
remote.c: drop default_remote_name variable
When we read the remote config from disk, we update a default_remote_name variable if we see branch.*.remote config for the current branch. This isn't wrong, or even all that complicated, but it is a bit simpler (because it reduces our overall state) to just lazily compute the default when we need it. The ulterior motive here is that the push config uses a similar structure, and _is_ much more complicated as a result. That will be simplified in a future patch, and it's more readable if the logic for remotes and push-remotes matches. Note that we also used default_remote_name as a signal that the remote config has been loaded; after this patch, we now use an explicit flag. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4100')
0 files changed, 0 insertions, 0 deletions