Adding Data
Adding Files
Section titled “Adding Files”gda add bids/sub-01/meg/run-01.fifgda add sub-02/beh/data.csvAdding Directories
Section titled “Adding Directories”GDA walks directories recursively:
gda add sub-01/gda add bids/Skips symlinks and directories automatically.
Add All
Section titled “Add All”gda add .Adds every file in the repository. Excludes .gda/ automatically.
What Happens
Section titled “What Happens”When you add a file, GDA:
- Computes its SHA256 hash while writing to the object store (single pass)
- Stores the object in
.gda/objects/XX/YYY...(read-only, 0444 permissions) - Replaces the original with a relative symlink to the object
- Records the path→hash mapping in the index
Deduplication
Section titled “Deduplication”Identical content is stored once. If two files have the same hash, they share the same object in the store.