Skip to content

Fix "repack --window-memory=4g" regression in 1.8.4

Junio C Hamano git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 4 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2parse-options: refactor human-friendly-integer parser out of pack-objectsbuiltin/pack-objects.c parse-options.c parse-options.h+26 -210 replies
2/2repack: accept larger window-memory and max-pack-sizebuiltin/repack.c+6 -67 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] Fix "repack --window-memory=4g" regression in 1.8.4

The command line parser was broken when the command was reimplemented in C in two ways. It incorrectly limited the value range of window-memory and max-pack-size to "int", and also stopped grokking the unit suffixes like 2g/400m/8k.

These two patches apply on top of 35c14176 (Reword repack documentation to no longer state it's a script, 2013-10-19) and later can be merged down to maint-1.8.4 track and upwards.

Junio C Hamano (2):
parse-options: refactor human-friendly-integer parser out of pack-objects
repack: accept larger window-memory and max-pack-size

 builtin/pack-objects.c | 25 ++++---------------------
 builtin/repack.c       | 12 ++++++------
 parse-options.c        | 17 +++++++++++++++++
 parse-options.h        |  5 +++++
 4 files changed, 32 insertions(+), 27 deletions(-)
Signature · 1 line
1.9-rc0-151-ga5225c0