diff options
author | 2015-03-31 04:27:05 +0000 | |
---|---|---|
committer | 2015-03-31 04:27:05 +0000 | |
commit | e8a7d3e247ca442947d6e5624b69ee5ced40af31 (patch) | |
tree | fe6160f72a2d15c870be29ab2caefd9ebb31e8aa | |
parent | 86510b75ee8234838987e5e49c8e68241d547328 (diff) |
ideas on how to hack into the remote.log
-rw-r--r-- | doc/forum/how_to_edit_the_git-annex_branch__63__.mdwn | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/forum/how_to_edit_the_git-annex_branch__63__.mdwn b/doc/forum/how_to_edit_the_git-annex_branch__63__.mdwn new file mode 100644 index 000000000..a37391001 --- /dev/null +++ b/doc/forum/how_to_edit_the_git-annex_branch__63__.mdwn @@ -0,0 +1,9 @@ +as a followup to [[forum/remote-specific_meta-data/]], now i'm thinking of injecting data in the `git-annex` branch. i'm still a little hesitant because [[forum/optimising_lookupkey/]] mentions that i need to "delete or update `.git/annex/index`" when doing so. yet I also saw in the source code there is a `.git/annex/index.lock` file that is being used to avoid concurrent access to that file - is that something that should be watched out for? how do I manage that lockfile? is it mandatory to stage files into the index at first? + +maybe i'm just not familiar enough with how git operates internally myself. i've reviewed this section of the progit book again: http://git-scm.com/book/en/v2/Git-Internals-Git-Objects - and i feel i have again some handle on how to do those things, but it seems like a major hurdle to go through just to change a single setting in one git-annex metadata file... wouldn't `enableremote` be sufficient here? I figured to append custom fields to a remote, i could do: + + git annex enableremote myremoteuuid "$(git cat-file -p git-annex:remote.log | grep myremoteuuid) extratag=true" + +Would that work at all? Should i operate directly on the git-annex branch myself instead? + +Thanks! --[[anarcat]] |