From fe26c9aa60754782c31901262b14f1a616eec995 Mon Sep 17 00:00:00 2001 From: "jasonb@ab4484d9961a46440958fa1a528e0fc435599057" Date: Mon, 27 Dec 2021 18:51:14 +0000 Subject: [PATCH 1/2] Added a comment --- ..._e9d1f0a0b10a16079f06b63251806b0e._comment | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 doc/forum/Use_assistant_to_sync_just_git_repos__63__/comment_5_e9d1f0a0b10a16079f06b63251806b0e._comment diff --git a/doc/forum/Use_assistant_to_sync_just_git_repos__63__/comment_5_e9d1f0a0b10a16079f06b63251806b0e._comment b/doc/forum/Use_assistant_to_sync_just_git_repos__63__/comment_5_e9d1f0a0b10a16079f06b63251806b0e._comment new file mode 100644 index 0000000000..5706d386e7 --- /dev/null +++ b/doc/forum/Use_assistant_to_sync_just_git_repos__63__/comment_5_e9d1f0a0b10a16079f06b63251806b0e._comment @@ -0,0 +1,55 @@ +[[!comment format=mdwn + username="jasonb@ab4484d9961a46440958fa1a528e0fc435599057" + nickname="jasonb" + avatar="http://cdn.libravatar.org/avatar/c7330f4da122c671b935fc1d58bb02b1" + subject="comment 5" + date="2021-12-27T18:51:14Z" + content=""" +For anyone that finds this in the future, on OS X you can setup the agent to run at login with a launchd script similar to the following: + +``` + + + + + Label + com.example.gitannexassistant + + ProgramArguments + + /usr/local/bin/git-annex + assistant + --autostart + + + EnvironmentVariables + + PATH + /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin + + + Nice + 1 + + RunAtLoad + + + StandardErrorPath + /tmp/gitannexassistant.err + + StandardOutPath + /tmp/gitannexassistant.out + + +``` + +You'll need to put it into: + +`~/Library/LaunchAgents/com.example.gitannexassistant.plist` + +And load it with `launchctl load ~/Library/LaunchAgents/com.example.gitannexassistant.plist` + +But don't forget to populate `~/.config/git-annex/autostart` with each repo, one per line. + +Enjoy! +"""]] From 4257c23370ced88e48ad1c86a5775eaf37461fb8 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 27 Dec 2021 15:45:22 -0400 Subject: [PATCH 2/2] update on status --- ..._7fac2098e6d7cce997a540592e20c97a._comment | 27 ++++++++++++------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/doc/bugs/merge-annex-branches__61__false_-_automate_and_extend/comment_6_7fac2098e6d7cce997a540592e20c97a._comment b/doc/bugs/merge-annex-branches__61__false_-_automate_and_extend/comment_6_7fac2098e6d7cce997a540592e20c97a._comment index 3b8785873e..cb5c9ec4d8 100644 --- a/doc/bugs/merge-annex-branches__61__false_-_automate_and_extend/comment_6_7fac2098e6d7cce997a540592e20c97a._comment +++ b/doc/bugs/merge-annex-branches__61__false_-_automate_and_extend/comment_6_7fac2098e6d7cce997a540592e20c97a._comment @@ -8,17 +8,26 @@ Current list of items that need to be fixed before this is mergeable: - When there is a transition in one of the remote git-annex branches that has not yet been applied to the local or other git-annex branches. Transitions are not handled. -- `git-annex log` runs git log on the git-annex branch, and so +- (fixed) `git-annex log` runs git log on the git-annex branch, and so it will not be able to show information coming from the other, not yet - merged branches. -- Annex.Branch.files only looks at files in the git-annex branch and not - unmerged branches. This affects git-annex info output. -- Annex.Branch.hs.overBranchFileContents ditto. Affects --all and + merged branches. Fixed by making it error out in that situation. +- (fixed) Annex.Branch.files only looks at files in the git-annex branch and not + unmerged branches. This affects git-annex info output when displaying + info for a remote or a uuid. Fixed by making info display "not available" + in that situation. Not ideal, it is a small difference in output compared + to when the repository is not read-only. +- (fixed) Annex.Branch.hs.overBranchFileContents ditto. Affects --all and also importfeed (but importfeed cannot work in a read-only repo - anyway). -- CmdLine.Seek.seekFilteredKeys when precaching location logs. - Note use of Annex.Branch.fullname -- Database.ContentIdentifier.needsUpdateFromLog and updateFromLog + anyway). Fixed by making --all throw an error when there are unmerged + branches. +- (fixed) CmdLine.Seek.seekFilteredKeys when precaching location logs. + Note use of Annex.Branch.fullname. Fixed by avoiding precaching + when there are unmerged git-annex branches. This fix will make some + things slower in a read-only repo. +- (skip) Database.ContentIdentifier.needsUpdateFromLog and updateFromLog access + the branch manually and would not see unmerged branches. But updateFromLog + writes to the db so won't run in a readonly repo anyway, and so it seems + this can be skipped. - (skip) `--in=repository@{date}` uses loggedLocationsHistorical which uses Annex.Branch.getHistorical, which does not look at unmerged branches. But perhaps this is ok.. This uses the reflog, so when used to query