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>
60 lines
1.3 KiB
C
60 lines
1.3 KiB
C
/*
|
|
* Shim to publicly export Git symbols. These must be renamed so that the
|
|
* original symbols can be hidden. Renaming these with a "libgit_" prefix also
|
|
* avoids conflicts with other libraries such as libgit2.
|
|
*/
|
|
|
|
#include "git-compat-util.h"
|
|
#include "config.h"
|
|
#include "contrib/libgit-sys/public_symbol_export.h"
|
|
#include "version.h"
|
|
|
|
#pragma GCC visibility push(default)
|
|
|
|
struct libgit_config_set {
|
|
struct config_set cs;
|
|
};
|
|
|
|
struct libgit_config_set *libgit_configset_alloc(void)
|
|
{
|
|
struct libgit_config_set *cs =
|
|
xmalloc(sizeof(struct libgit_config_set));
|
|
git_configset_init(&cs->cs);
|
|
return cs;
|
|
}
|
|
|
|
void libgit_configset_free(struct libgit_config_set *cs)
|
|
{
|
|
git_configset_clear(&cs->cs);
|
|
free(cs);
|
|
}
|
|
|
|
int libgit_configset_add_file(struct libgit_config_set *cs, const char *filename)
|
|
{
|
|
return git_configset_add_file(&cs->cs, filename);
|
|
}
|
|
|
|
int libgit_configset_get_int(struct libgit_config_set *cs, const char *key,
|
|
int *dest)
|
|
{
|
|
return git_configset_get_int(&cs->cs, key, dest);
|
|
}
|
|
|
|
int libgit_configset_get_string(struct libgit_config_set *cs, const char *key,
|
|
char **dest)
|
|
{
|
|
return git_configset_get_string(&cs->cs, key, dest);
|
|
}
|
|
|
|
const char *libgit_user_agent(void)
|
|
{
|
|
return git_user_agent();
|
|
}
|
|
|
|
const char *libgit_user_agent_sanitized(void)
|
|
{
|
|
return git_user_agent_sanitized();
|
|
}
|
|
|
|
#pragma GCC visibility pop
|