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>
37 lines
742 B
C
37 lines
742 B
C
/*
|
|
* "git annotate" builtin alias
|
|
*
|
|
* Copyright (C) 2006 Ryan Anderson
|
|
*/
|
|
|
|
#include "git-compat-util.h"
|
|
#include "builtin.h"
|
|
#include "strvec.h"
|
|
|
|
int cmd_annotate(int argc,
|
|
const char **argv,
|
|
const char *prefix,
|
|
struct repository *repo)
|
|
{
|
|
struct strvec args = STRVEC_INIT;
|
|
const char **args_copy;
|
|
int ret;
|
|
|
|
strvec_pushl(&args, "annotate", "-c", NULL);
|
|
for (int i = 1; i < argc; i++)
|
|
strvec_push(&args, argv[i]);
|
|
|
|
/*
|
|
* `cmd_blame()` ends up modifying the array, which causes memory leaks
|
|
* if we didn't copy the array here.
|
|
*/
|
|
CALLOC_ARRAY(args_copy, args.nr + 1);
|
|
COPY_ARRAY(args_copy, args.v, args.nr);
|
|
|
|
ret = cmd_blame(args.nr, args_copy, prefix, repo);
|
|
|
|
strvec_clear(&args);
|
|
free(args_copy);
|
|
return ret;
|
|
}
|