This is the classical reference database representation for a Git repository. References are stored in two formats: loose, and packed.
Loose references are stored as individual files within the {@code refs/}directory. The file name matches the reference name and the file contents is the current {@link ObjectId} in string form.
Packed references are stored in a single text file named {@code packed-refs}. In the packed format, each reference is stored on its own line. This file reduces the number of files needed for large reference spaces, reducing the overall size of a Git repository on disk.
|
|