Hmm, an unrelated funniness here is why the code even needs to futz with
the value read from the configuration. Later in the code we have:
if (!pack_to_stdout && !pack_size_limit)
pack_size_limit = pack_size_limit_cfg;
and the intent seems to be:
- if there is nothing on the command line, use config;
- if there is something on the command line, ignore config.
But if you have a configured limit and would want to override from the
command line, this won't work.
I will apply the wraparound avoidance as a separate "pure fix" patch to
'maint' first.
Besides, --max-pack-size has been defined as megabytes for the entirety of
its existence, and I am a bit worried about changing the semantics at this
point without any warning. I realize that I am worried too much for
people with a script that give an explicit --max-pack-size=1 to obtain a
set of split packs that would fit on floppies, who probably would not
exist ;-)
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html