Where GitAegis stores things
The application-support directory, refs/aegis/, and what is written inside your repository.
One directory
Everything GitAegis writes for itself lives under a single application-support directory. Nothing is scattered across your home folder, and nothing GitAegis manages is written inside .git/ except the recovery refs described further down.
~/Library/Application Support/dev.gitaegis.app/aegis/
├── app.db SQLite: catalogue, journal, capsule index, flight timeline, settings
├── app.db-wal write-ahead log
├── app.db-shm shared-memory index
├── app.backup-v<N> one per schema migration, never deleted by the application
├── capsules/
│ └── <repository-id>/
│ ├── cap-<id>/ standard capsule
│ ├── chk-<id>/ light checkpoint
│ └── .exports/ Doctor export text files
├── exports/
│ └── support-bundle-<timestamp>/
└── logs/ never created in this editionapp.db, and what is in it
| Content | Notes |
|---|---|
| Repository catalogue | The display name and the absolute path of every repository you added. |
| Operation journal | Every operation GitAegis performed, with its plan, status, affected refs and rollback information. It is kept forever. It is the recovery log. |
| Capsule index | Metadata only. The capsule contents are files on disk, below. |
| Flight Recorder timeline | Events per repository, swept to a budget (200 by default, configurable between 20 and 5000). Pinned events, and events linked to a pinned capsule or an unfinished operation, are exempt. |
| Credential metadata | Which helper a repository uses, and whether an entry exists. No secret, token or password is stored here. See Credentials and SSH. |
| Settings, policies, change sets | Your preferences, the local policy rules you wrote, and change-set rows. |
The database is SQLite in WAL mode, which is why the -wal and -shm sidecars sit beside it; they belong to the database and are deleted with it.
capsules/: the directory that holds your code
This is the most sensitive thing GitAegis writes. A capsule contains verbatim copies of repository content, not a summary of it:
HEAD raw .git/HEAD byte copy
refs/ recursive copy of .git/refs
packed-refs if present
reflogs/ recursive copy of .git/logs: commit subjects, author identities
index.original binary .git/index, byte for byte
index-metadata.json whether an index was present, and whether it verified
staged.patch git diff --cached --binary: the full text of your staged changes
unstaged.patch git diff --binary: the full text of your unstaged changes
operation-state/ MERGE_HEAD, CHERRY_PICK_HEAD, REVERT_HEAD, BISECT_LOG, ORIG_HEAD, …
config.sanitized git config --local --list, credential-bearing lines stripped
manifest.json id, repository, label, HEAD ref and oid, Git version, retention expiry
checksums.json SHA-256 for every entry above
untracked-files.tar standard capsules only: uncompressed archive of untracked files
repository.bundle standard capsules only: git bundle create --allIf you copy your home directory, back it up, or hand the Mac to someone else, these directories go with it.
Retention. Capsules are stamped with a 90-day expiry, and shortly after each launch GitAegis sweeps the ones that have passed it, on a background thread rather than on the launch path. Two exemptions: a pinned capsule never expires, and a capsule belonging to an operation that never finished is kept regardless. Directories left behind by a crash (capsule folders with no database row) are reclaimed by the same pass. So this tree holds up to 90 days of repository content, and holds it indefinitely if the application is never launched again.
Exports, and logs
Two directories are written only when you ask for them. Neither is sent anywhere; each is a file on your disk and what happens to it next is your decision.
~/Library/Application Support/dev.gitaegis.app/aegis/exports/support-bundle-<timestamp>/
~/Library/Application Support/dev.gitaegis.app/aegis/capsules/<repository-id>/.exports/doctor-<plain|technical>-<timestamp>.txtLog files: none. A log writer exists in the code, but nothing instantiates it to write and no tracing subscriber is installed in the shipped application, so those events are discarded and the logs/ directory is never created. Launch GitAegis from a terminal and you will see output on stderr; that is your terminal, not a file GitAegis wrote.
Inside your repositories
GitAegis writes recovery refs under refs/aegis/ before the three operations that can otherwise strand commits. These are ordinary Git refs in your repository, not in GitAegis’s directory, and GitAegis never garbage-collects them.
| Ref | Written before |
|---|---|
refs/aegis/recover/<branch>-pre-force-push | a force push |
refs/aegis/recover/pre-merge-abort | a merge-abort repair |
refs/aegis/recover/pre-rebase-abort | a rebase-abort repair |
cd /path/to/repositorygit for-each-ref --format='%(refname) %(objectname:short) %(contents:subject)' refs/aegis/
Three other things can appear inside a repository:
- Restoring from a capsule writes to
.git/HEAD,.git/index, the operation marker files, and (for untracked files) into your working tree. That is what a restore is, and it is always preceded by a fresh capsule of the state you are leaving. - Setting a commit identity through GitAegis writes
user.nameanduser.emailto the repository’s.git/config, or to~/.gitconfigif you chose global scope. Nothing else in your Git configuration is touched. .aegis-conflict-<uuid>.tmpfiles, from an interrupted conflict resolution. They are normally renamed into place immediately.
Temporary files, and what macOS creates
Under your system temp directory ($TMPDIR, typically /var/folders/…/T/):
aegis-index-snapshot-<uuid>/: a per-operation index snapshot, created with mode0700and removed when the operation completes.aegis-rollback-<uuid>.patch: written and deleted during a rollback. It contains repository diff content and would survive a crash mid-rollback, so it is worth checking after one.
macOS creates its own per-application directories for any app that uses a WebKit view, keyed on the bundle identifier dev.gitaegis.app: under ~/Library/Caches, ~/Library/WebKit, ~/Library/HTTPStorages, ~/Library/Saved Application State, and a preferences plist. These are the operating system’s, not GitAegis’s; Uninstalling lists them so a removal can be complete.