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>
70 lines
1.2 KiB
Bash
Executable File
70 lines
1.2 KiB
Bash
Executable File
#!/bin/sh
|
|
# Copyright (c) 2011, Google Inc.
|
|
|
|
test_description='diff --stat-count'
|
|
|
|
. ./test-lib.sh
|
|
|
|
test_expect_success 'setup' '
|
|
>a &&
|
|
>b &&
|
|
>c &&
|
|
>d &&
|
|
git add a b c d &&
|
|
git commit -m initial
|
|
'
|
|
|
|
test_expect_success 'mode-only change show as a 0-line change' '
|
|
git reset --hard &&
|
|
test_chmod +x b d &&
|
|
echo a >a &&
|
|
echo c >c &&
|
|
cat >expect <<-\EOF &&
|
|
a | 1 +
|
|
b | 0
|
|
...
|
|
4 files changed, 2 insertions(+)
|
|
EOF
|
|
git diff --stat --stat-count=2 HEAD >actual &&
|
|
test_cmp expect actual
|
|
'
|
|
|
|
test_expect_success 'binary changes do not count in lines' '
|
|
git reset --hard &&
|
|
echo a >a &&
|
|
echo c >c &&
|
|
cat "$TEST_DIRECTORY"/test-binary-1.png >d &&
|
|
cat >expect <<-\EOF &&
|
|
a | 1 +
|
|
c | 1 +
|
|
...
|
|
3 files changed, 2 insertions(+)
|
|
EOF
|
|
git diff --stat --stat-count=2 >actual &&
|
|
test_cmp expect actual
|
|
'
|
|
|
|
test_expect_success 'exclude unmerged entries from total file count' '
|
|
git reset --hard &&
|
|
echo a >a &&
|
|
echo b >b &&
|
|
git ls-files -s a >x &&
|
|
git rm -f d &&
|
|
for stage in 1 2 3
|
|
do
|
|
sed -e "s/ 0 a/ $stage d/" x || return 1
|
|
done |
|
|
git update-index --index-info &&
|
|
echo d >d &&
|
|
cat >expect <<-\EOF &&
|
|
a | 1 +
|
|
b | 1 +
|
|
...
|
|
3 files changed, 3 insertions(+)
|
|
EOF
|
|
git diff --stat --stat-count=2 >actual &&
|
|
test_cmp expect actual
|
|
'
|
|
|
|
test_done
|