I'm having some trouble getting an understanding and visibility into the content history of the files managed by my git annex repository.
git log
shows changes to the files, but these changes are essentially just symlink changes.
git log -p
reveals these changes as symlink changes under .git/annex
.
What I want is:
- Of a file, to see the changes to that file's content that have happened over time.
- Of a file, to be able to revert it to an older version of that file's content.
- Of a file, to get visibility into what versions of that file's content are available on what remotes.
git-annex-get
that old content if it has been moved somewhere.git-annex-log
git-annex-log
isn't what you want: it shows past locations, you want current ones. Seegit-annex-whereis
andgit-annex-list
.Is there a way to see the history of a file in annex? git annex log just shows the status of the current file.
git log just shows the meta data, not the actual file history.
By file history, I mean old versions of a file. So, if I do something like this:
touch file.txt sleep 5 echo -n "1" > file.txt sleep 5 echo -n "2" >> file.txt
How do I find copies of the initial and 2nd version (with only "1\n") of file.txt?
Diffs could be done (if meaningful) via command line pipes or whatever.