Convert gitgram/ and aitimemachine/ from embedded git repos (which showed as opaque submodule gitlinks on GitHub) into fully-tracked first-party content. AITM now merges its 7 vendored repos as first-party engines: - memory: beads (Go task DAG) + context7 (docs SDK), unified into saved_contexts - git: vendored C git (bundled binary) + gitnexus (in-process code intelligence) - agentic: a2a (@a2a-js/sdk) + pal (AITM-managed Python subprocess) Includes the full session's product build: Gitgram web/mobile/backend features, AITM website/CLI/MCP, the unified memory layer, engine build tooling (scripts/build-engines.sh, Dockerfile, CI), docs (README, ENGINES.md, ARCHITECTURE.md), and extensive test suites. Build artifacts, node_modules, external/, and gemini-cli are gitignored. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
63 lines
1.7 KiB
Bash
Executable File
63 lines
1.7 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
test_description='compression setting of fast-import utility'
|
|
|
|
. ./test-lib.sh
|
|
|
|
import_large () {
|
|
(
|
|
echo blob
|
|
echo "data <<EOD"
|
|
printf "%2000000s\n" "$*"
|
|
echo EOD
|
|
) | git "$@" fast-import
|
|
}
|
|
|
|
while read expect config
|
|
do
|
|
test_expect_success "fast-import (packed) with $config" '
|
|
test_when_finished "rm -f .git/objects/pack/pack-*.*" &&
|
|
test_when_finished "rm -rf .git/objects/??" &&
|
|
import_large -c fastimport.unpacklimit=0 $config &&
|
|
sz=$(test_file_size .git/objects/pack/pack-*.pack) &&
|
|
case "$expect" in
|
|
small) test "$sz" -le 100000 ;;
|
|
large) test "$sz" -ge 100000 ;;
|
|
esac
|
|
'
|
|
done <<\EOF
|
|
large -c core.compression=0
|
|
small -c core.compression=9
|
|
large -c core.compression=0 -c pack.compression=0
|
|
large -c core.compression=9 -c pack.compression=0
|
|
small -c core.compression=0 -c pack.compression=9
|
|
small -c core.compression=9 -c pack.compression=9
|
|
large -c pack.compression=0
|
|
small -c pack.compression=9
|
|
EOF
|
|
|
|
while read expect config
|
|
do
|
|
test_expect_success "fast-import (loose) with $config" '
|
|
test_when_finished "rm -f .git/objects/pack/pack-*.*" &&
|
|
test_when_finished "rm -rf .git/objects/??" &&
|
|
import_large -c fastimport.unpacklimit=9 $config &&
|
|
sz=$(test_file_size .git/objects/??/????*) &&
|
|
case "$expect" in
|
|
small) test "$sz" -le 100000 ;;
|
|
large) test "$sz" -ge 100000 ;;
|
|
esac
|
|
'
|
|
done <<\EOF
|
|
large -c core.compression=0
|
|
small -c core.compression=9
|
|
large -c core.compression=0 -c core.loosecompression=0
|
|
large -c core.compression=9 -c core.loosecompression=0
|
|
small -c core.compression=0 -c core.loosecompression=9
|
|
small -c core.compression=9 -c core.loosecompression=9
|
|
large -c core.loosecompression=0
|
|
small -c core.loosecompression=9
|
|
EOF
|
|
|
|
test_done
|