aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/pack-objects.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-03-29 09:32:51 -0700
committerJunio C Hamano <gitster@pobox.com>2020-03-29 09:32:51 -0700
commit9fadedd637b312089337d73c3ed8447e9f0aa775 (patch)
tree7c3c7fd874855d7bddd25a62495c8b921cc09274 /builtin/pack-objects.c
parentThe second batch post 2.26 cycle (diff)
parentpack-objects: flip the use of GIT_TEST_PACK_SPARSE (diff)
downloadgit-9fadedd637b312089337d73c3ed8447e9f0aa775.tar.gz
git-9fadedd637b312089337d73c3ed8447e9f0aa775.zip
Merge branch 'ds/default-pack-use-sparse-to-true'
The 'pack.useSparse' configuration variable now defaults to 'true', enabling an optimization that has been experimental since Git 2.21. * ds/default-pack-use-sparse-to-true: pack-objects: flip the use of GIT_TEST_PACK_SPARSE config: set pack.useSparse=true by default
Diffstat (limited to 'builtin/pack-objects.c')
-rw-r--r--builtin/pack-objects.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c
index 4c2bb170c6..dc7c58ce3f 100644
--- a/builtin/pack-objects.c
+++ b/builtin/pack-objects.c
@@ -3469,9 +3469,9 @@ int cmd_pack_objects(int argc, const char **argv, const char *prefix)
read_replace_refs = 0;
- sparse = git_env_bool("GIT_TEST_PACK_SPARSE", 0);
+ sparse = git_env_bool("GIT_TEST_PACK_SPARSE", -1);
prepare_repo_settings(the_repository);
- if (!sparse && the_repository->settings.pack_use_sparse != -1)
+ if (sparse < 0)
sparse = the_repository->settings.pack_use_sparse;
reset_pack_idx_option(&pack_idx_opts);
>-1/+4 2012-04-09mac80211: Convert WARN_ON to WARN_ON_ONCELarry Finger1-1/+1 2012-04-09rtlwifi: rtl8192de: Fix firmware initializationLarry Finger1-6/+0 2012-04-09nl80211: ensure interface is up in various APIsJohannes Berg1-13/+18 2012-04-09mac80211: fix association beacon wait timeoutJohannes Berg1-2/+1 2012-04-06Make the "word-at-a-time" helper functions more commonly usableLinus Torvalds2-32/+49 2012-04-06net: fix a race in sock_queue_err_skb()Eric Dumazet1-1/+3 2012-04-06netlink: fix races after skb queueingEric Dumazet1-11/+13 2012-04-06doc, net: Update ndo_start_xmit return type and valuesBen Hutchings1-10/+12 2012-04-06doc, net: Remove instruction to set net_device::trans_startBen Hutchings1-5/+2 2012-04-06doc, net: Update netdev operation namesBen Hutchings2-14/+14 2012-04-06doc, net: Update documentation of synchronisation for TX multiqueueBen Hutchings1-3/+3 2012-04-06doc, net: Remove obsolete reference to dev->pollBen Hutchings1-2/+1 2012-04-06ethtool: Remove exception to the requirement of holding RTNL lockBen Hutchings1-2/+1 2012-04-06blackfin: update defconfig for bf527-ezkitBob Liu1-0/+1 2012-04-06blackfin: gpio: fix compile error if !CONFIG_GPIOLIBBob Liu1-2/+12 2012-04-06blackfin: fix L1 data A overflow link issueMike Frysinger1-1/+1 2012-04-05MAINTAINERS: update for Marvell Ethernet driversstephen hemminger1-12/+7 2012-04-05bonding: properly unset current_arp_slave on slave link upVeaceslav Falico1-1/+5 2012-04-05phonet: Check input from user before allocatingSasha Levin1-0/+3 2012-04-05tcp: tcp_sendpages() should call tcp_push() onceEric Dumazet4-6/+9 2012-04-05memcg swap: use mem_cgroup_uncharge_swap fixMichal Hocko1-7/+7 2012-04-05backlight: add driver for DA9052/53 PMIC v1Ashish Jangam3-0/+194 2012-04-05C6X: use set_current_blocked() and block_sigmask()Matt Fleming1-13/+3 2012-04-05MAINTAINERS: add entry for sparse checkerChristopher Li1-0/+9 2012-04-05MAINTAINERS: fix REMOTEPROC F: typoJoe Perches1-1/+1 2012-04-05alpha: use set_current_blocked() and block_sigmask()Matt Fleming1-21/+10 2012-04-05simple_open: automatically convert to simple_open()Stephen Boyd63-572/+176