more precise description of where git-annex metadata gets attached

This commit is contained in:
Ilya_Shlyakhter 2018-10-02 16:53:53 +00:00 committed by admin
parent 1ee14c51e4
commit 5a373fd77c

View file

@ -23,11 +23,17 @@ this cannot be directly modified by this command. It is updated
automatically. automatically.
Note that the metadata is attached to the particular content of a file, Note that the metadata is attached to the particular content of a file,
not to a particular filename on a particular git branch. not to a particular filename on a particular git branch. More precisely,
All files with the same content share the same metadata, which is metadata is attached to the key used for the file, which can reflect
file contents and/or name, depending on the key-value backend used for the file.
All files with the same key share the same metadata, which is
stored in the git-annex branch. If a file is edited, old stored in the git-annex branch. If a file is edited, old
metadata will be copied to the new contents when you [[git-annex-add]] metadata will be copied to the new key when you [[git-annex-add]]
the edited file. the edited file. Note also that changes to a file's git-annex metadata will
not be reflected in the git log of the file, since they are stored on the
git-annex branch. To attach metadata to a particular path,
rather than a particular key, use .gitattributes .
# OPTIONS # OPTIONS