From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Porter Subject: Re: [OT] Git plus Syncthing: breaking hard links Date: Wed, 6 Apr 2016 23:47:40 +0000 (UTC) Message-ID: References: <87h9fgbm2j.fsf@ericabrahamsen.net> <87pou38cjd.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anxAu-0004dY-4s for emacs-orgmode@gnu.org; Wed, 06 Apr 2016 19:47:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1anxAq-0006Lo-U9 for emacs-orgmode@gnu.org; Wed, 06 Apr 2016 19:47:52 -0400 Received: from plane.gmane.org ([80.91.229.3]:38523) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anxAq-0006LL-NA for emacs-orgmode@gnu.org; Wed, 06 Apr 2016 19:47:48 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1anxAo-0007JY-Ue for emacs-orgmode@gnu.org; Thu, 07 Apr 2016 01:47:47 +0200 Received: from 172-0-42-27.lightspeed.ltrkar.sbcglobal.net ([172.0.42.27]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 07 Apr 2016 01:47:46 +0200 Received: from adam by 172-0-42-27.lightspeed.ltrkar.sbcglobal.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 07 Apr 2016 01:47:46 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi again Eric, On second thought, while symlinks may be worth trying, they might not work. I've noticed similar issues using Dropbox. If you put the file in your git repo and the symlink in Syncthing's repo, I'm guessing Syncthing will not follow the symlink, in which case it wouldn't sync the contents of the file. (I don't use Syncthing, so I could be wrong. If I am wrong, then this would probably solve the problem for you.) If you put the file in Syncthing and the symlink in the git repo, git will definitely not follow the symlink, so it will only store the symlink itself, meaning the file contents would no longer be stored in git. (This could work, but I doubt it's what you want.) It sounds like your workaround will solve the problem for you, so that's great. One suggestion though: I recommend excluding the .git directory from Syncthing. If anything happened on the other end and the git repo were accidentally corrupted, or if it was committed to on both ends before the changes were synced, your git repo could end up corrupted, and fixing it could be a lot of trouble. I've had a few problems like this before, so I no longer store VCS repos in Dropbox. I keep all my Org files in git repos, and I sync the Org files themselves, but the git repos are local to each system. Hope this helps!