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>
67 lines
1.3 KiB
Bash
Executable File
67 lines
1.3 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
test_description='git ls-files --deduplicate test'
|
|
|
|
. ./test-lib.sh
|
|
|
|
test_expect_success 'setup' '
|
|
>a.txt &&
|
|
>b.txt &&
|
|
>delete.txt &&
|
|
git add a.txt b.txt delete.txt &&
|
|
git commit -m base &&
|
|
echo a >a.txt &&
|
|
echo b >b.txt &&
|
|
echo delete >delete.txt &&
|
|
git add a.txt b.txt delete.txt &&
|
|
git commit -m tip &&
|
|
git tag tip &&
|
|
git reset --hard HEAD^ &&
|
|
echo change >a.txt &&
|
|
git commit -a -m side &&
|
|
git tag side
|
|
'
|
|
|
|
test_expect_success 'git ls-files --deduplicate to show unique unmerged path' '
|
|
test_must_fail git merge tip &&
|
|
git ls-files --deduplicate >actual &&
|
|
cat >expect <<-\EOF &&
|
|
a.txt
|
|
b.txt
|
|
delete.txt
|
|
EOF
|
|
test_cmp expect actual &&
|
|
git merge --abort
|
|
'
|
|
|
|
test_expect_success 'git ls-files -d -m --deduplicate with different display options' '
|
|
git reset --hard side &&
|
|
test_must_fail git merge tip &&
|
|
rm delete.txt &&
|
|
git ls-files -d -m --deduplicate >actual &&
|
|
cat >expect <<-\EOF &&
|
|
a.txt
|
|
delete.txt
|
|
EOF
|
|
test_cmp expect actual &&
|
|
git ls-files -d -m -t --deduplicate >actual &&
|
|
cat >expect <<-\EOF &&
|
|
C a.txt
|
|
C a.txt
|
|
C a.txt
|
|
R delete.txt
|
|
C delete.txt
|
|
EOF
|
|
test_cmp expect actual &&
|
|
git ls-files -d -m -c --deduplicate >actual &&
|
|
cat >expect <<-\EOF &&
|
|
a.txt
|
|
b.txt
|
|
delete.txt
|
|
EOF
|
|
test_cmp expect actual &&
|
|
git merge --abort
|
|
'
|
|
|
|
test_done
|