author | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Sun, 26 Jun 2005 02:35:47 +0000 (19:35 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Sun, 26 Jun 2005 02:35:47 +0000 (19:35 -0700) | ||
commit | f846bbff1507ebd0f25e480feacef2954a2629dd | |
tree | 640a42e75e45f0e5534c8c3ca862c8263ab07850 | tree | snapshot |
parent | 75c42d8cc3b42e4b82946848b8ba902b4bbcc38d | commit | diff |
git-pack-objects: make "--window=x" semantics more logical.
A zero disables delta generation (like before), but we make the window
be one bigger than specified, since we use one entry for the one to be
tested (it used to be that "--window=1" was meaningless, since we'd have
used up the single-entry window with the entry to be tested, and had no
chance of actually ever finding a delta).
The default window remains at 10, but now it really means "test the 10
closest objects", not "test the 9 closest objects".
A zero disables delta generation (like before), but we make the window
be one bigger than specified, since we use one entry for the one to be
tested (it used to be that "--window=1" was meaningless, since we'd have
used up the single-entry window with the entry to be tested, and had no
chance of actually ever finding a delta).
The default window remains at 10, but now it really means "test the 10
closest objects", not "test the 9 closest objects".
pack-objects.c | diff | blob | history |