Branches and revisions
A git repository can change every day. Atlas keeps the revisions you need and lets the rest go: each tracked branch keeps its latest commit, and pinned commits stay whatever the branches do.
Zip, folder and pushed repositories have no branches and keep every revision they were given.
Tracked branches
A new git repository tracks the branch it was created with, or the remote's default branch. Branches on the application page opens Branches and commits for a repository, which lists the remote's branches and the ones Atlas tracks.
- Atlas fetches only the tracked branches, with no tags. In a repository with hundreds of branches, only the tracked ones are fetched, stored and indexed.
- Atlas checks the tracked branches for new commits every 15 minutes (
ATLAS_BRANCH_CHECK_MINUTES,0to turn it off). Check now checks at once. - When a tracked branch moves, the new tip is indexed. Once it is written, the branch's previous revision is deleted, unless another tracked branch or a pin still holds it.
Before you save a change to the tracked branches or the pins, the page shows what the change would index and what it would delete.
Pinned commits
Pin a commit to keep it: a release, the revision a project started from, the one a specification was written against. Pin a commit takes a full commit hash or a prefix of at least seven characters.
- A pinned commit has to be reachable from a tracked branch, because the branches are the only history Atlas fetches.
- Indexing a commit by hash, or an untracked branch by name, pins what it indexed.
- A pin is kept until you remove it. Removing it deletes the revision if no branch holds it.
Comparing revisions
Compare revisions compares two indexed revisions of a repository, symbol by symbol: what was added, removed or changed. A symbol keeps its identity across revisions, so its history is one list of changes, not unrelated entries.

Storage
A file's text is stored once, however many revisions, branches or repositories hold the same text. Each revision keeps its own definitions, references and positions. Deleting a revision releases the text nothing else holds.