Thread (1 message) 1 message, 1 author, 2018-12-13

Re: [PATCH 5/5] midx: implement midx_repack()

From: Junio C Hamano <hidden>
Date: 2018-12-13 04:23:07

Junio C Hamano [off-list ref] writes:
"Derrick Stolee via GitGitGadget" [off-list ref] writes:
quoted
+		SECOND_SMALLEST_SIZE=$(ls -l .git/objects/pack/*pack | awk "{print \$5;}" | sort -n | head -n 2 | tail -n 1) &&
awk is capable of remembering $5 from each line of input, sorting
them and picking the second smallest element from it, isn't it?
quoted
+		BATCH_SIZE=$(($SECOND_SMALLEST_SIZE + 1)) &&
... or incrementing the number by one, before reporting, for that
matter.

Oops, please disregard.  My awk is rusty.  Unless we are willing to
rely on gawk, which we are not, it is not practical to sort inside
awk.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help