The commit message should be "time complexities for pack_pos_to_midx and
midx_to_pack_pos are swapped, correct it". Of course, this is not typofix.
--
An old man doll... just what I always wanted! - Clara
From: Kyle Zhao via GitGitGadget <hidden> Date: 2021-09-15 09:09:28
From: kylezhao <redacted>
Time complexities for pack_pos_to_midx and midx_to_pack_pos are swapped,
correct it.
Signed-off-by: kylezhao <redacted>
---
pack-revindex.h: correct the time complexity descriptions
It looks like the time complexity descriptions were written wrong.
Regards, Kyle
Changes since v1:
* changed the commit message
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-1039%2Fkeyu98%2Fkz%2Ffix-pack-revindex-typo-v2
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-1039/keyu98/kz/fix-pack-revindex-typo-v2
Pull-Request: https://github.com/gitgitgadget/git/pull/1039
Range-diff vs v1:
1: 8915a8f55ba ! 1: a2e9df25ac9 pack-revindex.h: fix typos of time complexity
@@ Metadata
Author: kylezhao [off-list ref]
## Commit message ##
- pack-revindex.h: fix typos of time complexity
+ pack-revindex.h: correct the time complexity descriptions
+
+ Time complexities for pack_pos_to_midx and midx_to_pack_pos are swapped,
+ correct it.
Signed-off-by: kylezhao [off-list ref]
pack-revindex.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
From: Taylor Blau <hidden> Date: 2021-09-16 05:10:35
On Wed, Sep 15, 2021 at 09:09:23AM +0000, Kyle Zhao via GitGitGadget wrote:
From: kylezhao <redacted>
Time complexities for pack_pos_to_midx and midx_to_pack_pos are swapped,
correct it.
Great eyes! Thanks for noticing and fixing. I took a look through the
other three functions which convert between pack offset, pack position,
and index position, and those had the correct runtime noted.
But these two were swapped, and are now correct after your patch. Thanks
again.
Reviewed-by: Taylor Blau [off-list ref]
Thanks,
Taylor