followup
This commit is contained in:
parent
58a7316a0e
commit
e8464f106b
2 changed files with 32 additions and 0 deletions
|
@ -10,4 +10,8 @@ safely.
|
|||
I've done some experimentation with deleting the sqlite database when there
|
||||
are unlocked files, and it seems that running `git annex fsck` manages to
|
||||
recover the deleted state and restores the database.
|
||||
|
||||
Also, since git-annex uses sqlite in WAL mode, it may be possible to
|
||||
recover the database to the last good state by deleting
|
||||
`.git/annex/keys/db-wal`. You'd still want to run `git annex fsck`.
|
||||
"""]]
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
[[!comment format=mdwn
|
||||
username="joey"
|
||||
subject="""comment 1"""
|
||||
date="2017-06-26T16:58:17Z"
|
||||
content="""
|
||||
I don't see the benefit to having custom commit messages for metadata
|
||||
changes. The changes are there in machine-readable format, so why
|
||||
involve a human?
|
||||
|
||||
I agree that it would be useful to have a way to look at the metadata
|
||||
history, much as `git annex log` looks at the location history.
|
||||
|
||||
Indeed, a lot of `git annex log` could be reused; `getAllLog` and
|
||||
`getKeyLog` are the hard part and would be reusable for metadata logs.
|
||||
The result might be something like this, when run on a file "foo":
|
||||
|
||||
+ Thu, 22 Jun 2017 17:07:43 EST foo | author=foo
|
||||
- Thu, 22 Jun 2017 17:07:43 EST foo | author=bar
|
||||
+ Thu, 11 Jun 2017 11:11:11 EST foo | author=bar
|
||||
|
||||
Note that git-annex log is necessarily slow when run on a lot of files,
|
||||
because it has to run a git command per file to get the log. `git-annex log
|
||||
--all` shows a fast stream of changes from newest first, but displays the
|
||||
git-annex key that was changed, not a filename. A version of `git annex
|
||||
log` for metadata would have these same limitations.
|
||||
|
||||
Would this help with your use case?
|
||||
"""]]
|
Loading…
Reference in a new issue