aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/diff-highlight/diff-highlight.perl
diff options
context:
space:
mode:
authorDerrick Stolee <dstolee@microsoft.com>2019-06-10 16:35:24 -0700
committerJunio C Hamano <gitster@pobox.com>2019-06-11 10:34:40 -0700
commitd01bf2e609bf792820023fc0f4ef5048bc689327 (patch)
tree6a669d3deca950a3bfe395a13e5e0103c78cfbd8 /contrib/diff-highlight/diff-highlight.perl
parentmidx: simplify computation of pack name lengths (diff)
downloadgit-d01bf2e609bf792820023fc0f4ef5048bc689327.tar.gz
git-d01bf2e609bf792820023fc0f4ef5048bc689327.zip
midx: refactor permutation logic and pack sorting
In anticipation of the expire subcommand, refactor the way we sort the packfiles by name. This will greatly simplify our approach to dropping expired packs from the list. First, create 'struct pack_info' to replace 'struct pack_pair'. This struct contains the necessary information about a pack, including its name, a pointer to its packfile struct (if not already in the multi-pack-index), and the original pack-int-id. Second, track the pack information using an array of pack_info structs in the pack_list struct. This simplifies the logic around the multiple arrays we were tracking in that struct. Finally, update get_sorted_entries() to not permute the pack-int-id and instead supply the permutation to write_midx_object_offsets(). This requires sorting the packs after get_sorted_entries(). Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/diff-highlight/diff-highlight.perl')
0 files changed, 0 insertions, 0 deletions
d>2016-05-31More topics for 2.8.4Junio C Hamano1-0/+28 2016-05-31rebase -i: remove an unnecessary 'rerere' invocationJohannes Sixt1-1/+0 2016-05-31perf: make the tests work without a worktreeRené Scharfe1-1/+4 2016-05-31Documentation: bold literals in manErwan Mathoniere1-1/+1 2016-05-31Makefile: move 'ifdef DEVELOPER' after config.mak* inclusionMatthieu Moy1-12/+12 2016-05-31README.md: format CLI commands with code syntaxBenjamin Dopplinger1-5/+5 2016-05-29Final batch before 2.9-rc1Junio C Hamano1-0/+11 2016-05-29git-cherry-pick.txt: correct a small typoPablo Santiago Blum de Aguiar1-1/+1 2016-05-29patch-id: use starts_with() and skip_prefix()René Scharfe1-13/+10 2016-05-29apply: remove unused parameters from name_terminate()René Scharfe1-2/+2 2016-05-27Documentation: add instructions to help setup gmail 2FAMichael Rappazzo1-0/+13 2016-05-27log: document the --decorate=auto optionRamsay Jones2-4/+9