From a83f6075ec6a2c86eb49059b862a234762b41b44 Mon Sep 17 00:00:00 2001 From: "eric.w@eee65cd362d995ced72640c7cfae388ae93a4234" Date: Wed, 23 Dec 2020 19:57:49 +0000 Subject: [PATCH 1/7] removed --- .../comment_1_0d8c0a803be4576a3048b231b19a4a6a._comment | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 doc/git-annex-fix/comment_1_0d8c0a803be4576a3048b231b19a4a6a._comment diff --git a/doc/git-annex-fix/comment_1_0d8c0a803be4576a3048b231b19a4a6a._comment b/doc/git-annex-fix/comment_1_0d8c0a803be4576a3048b231b19a4a6a._comment deleted file mode 100644 index 7cbbbb1e0d..0000000000 --- a/doc/git-annex-fix/comment_1_0d8c0a803be4576a3048b231b19a4a6a._comment +++ /dev/null @@ -1,9 +0,0 @@ -[[!comment format=mdwn - username="eric.w@eee65cd362d995ced72640c7cfae388ae93a4234" - nickname="eric.w" - avatar="http://cdn.libravatar.org/avatar/8d9808c12db3a3f93ff7f9e74c0870fc" - subject="comment 1" - date="2020-11-20T22:16:34Z" - content=""" -If I move a symlink up one directory (thus breaking it), git-annex fix \"symlink-name\" doesn't do anything. the only way I could find to fix it was to do a git annex add $symlink-name. what am I doing wrong? -"""]] From b1cd6981f52e942d61414e8db31867474d35dcbf Mon Sep 17 00:00:00 2001 From: AlbertZeyer Date: Mon, 28 Dec 2020 15:33:08 +0000 Subject: [PATCH 2/7] --- doc/forum/Import_existing_files.mdwn | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 doc/forum/Import_existing_files.mdwn diff --git a/doc/forum/Import_existing_files.mdwn b/doc/forum/Import_existing_files.mdwn new file mode 100644 index 0000000000..2369be97fb --- /dev/null +++ b/doc/forum/Import_existing_files.mdwn @@ -0,0 +1,13 @@ +I have not used git-annex before but I wonder whether this is for me. + +I have some big existing directories, e.g. with family pictures (several 100 GBs), e.g. in `~/Pictures`. I already have multiple copies of this pictures directory on multiple medias (other (remote) servers, hard drives, some DVDs, etc). + +I wonder about the recommended workflow now. In the documentation, it is explained how to create a new Git Annex Repo, where I would copy over the data. But I don't want to copy over the data. I want to keep them in `~/Pictures`, and also make use of other existing copies (I cannot even modify some of them anymore, such as my readonly DVDs). + +I thought that Git-Annex would just help me keep track of multiple copies. How would I import such a directory? + +I read briefly about Git Worktree, and I wonder whether that is supposed to be for this use case? + +Or should I create the new Git Annex Repo directly in `~/Pictures`? I.e. I would do `cd ~/Pictures; git init; git annex init`? How would I now add the other copies of `Pictures`? How would I deal with readonly copies of `Pictures` like DVDs? + +I read [[how it works]] and [[workflow]] but this does not really answers my questions. From 5765a9cbc03cc9707a5e8859064dab30bd149c7e Mon Sep 17 00:00:00 2001 From: AlbertZeyer Date: Mon, 28 Dec 2020 15:46:52 +0000 Subject: [PATCH 3/7] --- doc/forum/Import_existing_files.mdwn | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/forum/Import_existing_files.mdwn b/doc/forum/Import_existing_files.mdwn index 2369be97fb..e17e458e73 100644 --- a/doc/forum/Import_existing_files.mdwn +++ b/doc/forum/Import_existing_files.mdwn @@ -10,4 +10,6 @@ I read briefly about Git Worktree, and I wonder whether that is supposed to be f Or should I create the new Git Annex Repo directly in `~/Pictures`? I.e. I would do `cd ~/Pictures; git init; git annex init`? How would I now add the other copies of `Pictures`? How would I deal with readonly copies of `Pictures` like DVDs? +Also, I don't just want to store the pictures but also other stuff (e.g. `~/Music`). I'm not sure if I should create separate repos for that, or whether it makes more sense to keep them all in one big repo? + I read [[how it works]] and [[workflow]] but this does not really answers my questions. From 268df65516295980325e289a8a8c8f0acc8cd82c Mon Sep 17 00:00:00 2001 From: AlbertZeyer Date: Mon, 28 Dec 2020 15:50:54 +0000 Subject: [PATCH 4/7] --- doc/forum/Import_existing_files.mdwn | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/forum/Import_existing_files.mdwn b/doc/forum/Import_existing_files.mdwn index e17e458e73..c2957ecf26 100644 --- a/doc/forum/Import_existing_files.mdwn +++ b/doc/forum/Import_existing_files.mdwn @@ -8,6 +8,8 @@ I thought that Git-Annex would just help me keep track of multiple copies. How w I read briefly about Git Worktree, and I wonder whether that is supposed to be for this use case? +Or maybe this should be a bare repo? + Or should I create the new Git Annex Repo directly in `~/Pictures`? I.e. I would do `cd ~/Pictures; git init; git annex init`? How would I now add the other copies of `Pictures`? How would I deal with readonly copies of `Pictures` like DVDs? Also, I don't just want to store the pictures but also other stuff (e.g. `~/Music`). I'm not sure if I should create separate repos for that, or whether it makes more sense to keep them all in one big repo? From 4593f002b74614c1bcc1eba4d82d7e266963cee5 Mon Sep 17 00:00:00 2001 From: AlbertZeyer Date: Mon, 28 Dec 2020 16:02:24 +0000 Subject: [PATCH 5/7] --- .../Fuzzy_local_sensitive_hashing___40__LSH__41__.mdwn | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 doc/forum/Fuzzy_local_sensitive_hashing___40__LSH__41__.mdwn diff --git a/doc/forum/Fuzzy_local_sensitive_hashing___40__LSH__41__.mdwn b/doc/forum/Fuzzy_local_sensitive_hashing___40__LSH__41__.mdwn new file mode 100644 index 0000000000..b968650064 --- /dev/null +++ b/doc/forum/Fuzzy_local_sensitive_hashing___40__LSH__41__.mdwn @@ -0,0 +1,7 @@ +For some file types, e.g. images and sound, I would like to also add some local sensitive hash (LSH), and be able to find duplicates that way. E.g. that would allow me to find duplicate images where the image metadata was changed, or maybe the quality was changed, etc. + +Ideally, I would want to add such meta data to Git-Annex. I'm not sure if this should be a backend ([[backends]]) or kept separate from it (as there will be collisions, by design). + +Is anything like that already supported? + +If not, would it be possible to add such support to Git-Annex? How? From 5f9921762631a335555059a02e97d3feb5e35114 Mon Sep 17 00:00:00 2001 From: AlbertZeyer Date: Mon, 28 Dec 2020 16:31:09 +0000 Subject: [PATCH 6/7] --- doc/forum/Fuzzy_local_sensitive_hashing___40__LSH__41__.mdwn | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/forum/Fuzzy_local_sensitive_hashing___40__LSH__41__.mdwn b/doc/forum/Fuzzy_local_sensitive_hashing___40__LSH__41__.mdwn index b968650064..0f1c488722 100644 --- a/doc/forum/Fuzzy_local_sensitive_hashing___40__LSH__41__.mdwn +++ b/doc/forum/Fuzzy_local_sensitive_hashing___40__LSH__41__.mdwn @@ -2,6 +2,8 @@ For some file types, e.g. images and sound, I would like to also add some local Ideally, I would want to add such meta data to Git-Annex. I'm not sure if this should be a backend ([[backends]]) or kept separate from it (as there will be collisions, by design). +I also want fast lookups for some specific hash. I'm not sure if the Git-Annex metadata allow for that? A Git-Annex backend naturally has this feature, but then how would it handle collisions? I would want that this LSH backend just links to a list of matching files, i.e. symlinks to the real files (via SHA backend or so). + Is anything like that already supported? If not, would it be possible to add such support to Git-Annex? How? From 1ff649987836a751d49e862db526d293f6694334 Mon Sep 17 00:00:00 2001 From: "gb@4a49bb1afcf3d183bba8f07297b0395808768c6c" Date: Mon, 28 Dec 2020 20:03:34 +0000 Subject: [PATCH 7/7] Bug report: annex.adjustedbranchrefresh ignored --- .../adjustedbranchrefresh_ignored__63__.mdwn | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 doc/forum/adjustedbranchrefresh_ignored__63__.mdwn diff --git a/doc/forum/adjustedbranchrefresh_ignored__63__.mdwn b/doc/forum/adjustedbranchrefresh_ignored__63__.mdwn new file mode 100644 index 0000000000..42cf9e9060 --- /dev/null +++ b/doc/forum/adjustedbranchrefresh_ignored__63__.mdwn @@ -0,0 +1,50 @@ +In some occasions `annex.adjustedbranchrefresh` is ignored when `git annex sync` is run in a branch created with `adjust --unlock-present`. + +If `annex.adjustedbranchrefresh` is set to 1, one would expect git-annex to automatically adjust the branch once a file has been `git annex add`-ed or the repository is `git annex sync`-ed. However this does not happen and a manual `git annex adjust --unlock-present` is required. + +Is this a bug or am I misunderstanding how `annex.adjustedbranchrefresh` is supposed to work? + +The following script reproduces this bug. + +``` +#!/bin/bash + +set -eux + +rm -Rvf /tmp/an-repo.git && mkdir /tmp/an-repo.git && cd /tmp/an-repo.git +git init --bare +n=$(date +%s) ; mkdir /tmp/ga-$n && cd /tmp/ga-$n +git clone --no-local --no-hardlinks /tmp/an-repo.git +cd an-repo/ + +git config user.email "email@example.com" ; git config user.name "Name Name" +git config annex.thin true +git config annex.adjustedbranchrefresh 1 +git config remote.origin.annex-ignore true + +# 8.20201117 is the version in the standalone tarball of 8.20201127 +~/Applications/git-annex/8.20201117-ga314537cd/runshell bash -c ' +git annex init foobar + +echo "aaaa" > a && echo "bbbb" > b +git annex add a b +git annex sync + +git annex adjust --unlock-present +git annex sync + +echo "cccc" > c && echo "dddd" > d +git annex add c d + +echo "## before sync" +stat -c "%n: %F" a b c d + +git annex sync +echo "## after sync" +stat -c "%n: %F" a b c d # should show four regular files, but shows two files and two symlinks + +git annex sync --content; +echo "## after sync --content" +stat -c "%n: %F" a b c d # ibid +' +```