From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Howes Subject: Re: [OT] Git plus Syncthing: breaking hard links Date: Tue, 5 Apr 2016 15:53:14 -0700 Message-ID: References: <87h9fgbm2j.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51907) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anZsO-0007ze-Bd for emacs-orgmode@gnu.org; Tue, 05 Apr 2016 18:55:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1anZsL-0004Pd-5g for emacs-orgmode@gnu.org; Tue, 05 Apr 2016 18:55:12 -0400 Received: from plane.gmane.org ([80.91.229.3]:49779) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anZsK-0004Oq-Uo for emacs-orgmode@gnu.org; Tue, 05 Apr 2016 18:55:09 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1anZsI-0003vm-5M for emacs-orgmode@gnu.org; Wed, 06 Apr 2016 00:55:06 +0200 Received: from nearlyneutral.dyn.berkeley.edu ([169.229.61.30]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Apr 2016 00:55:06 +0200 Received: from timhowes by nearlyneutral.dyn.berkeley.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Apr 2016 00:55:06 +0200 In-Reply-To: <87h9fgbm2j.fsf@ericabrahamsen.net> 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 To avoid data loss, Syncthing creates a temporary file during transfer with the name ~syncthing~.{filename}.tmp If the transfer completes successfully, then it moves that file in place of the previous version. It's a new inode, not an update of the previous inode, so the hard link will be lost. Instead of using hard links, you could share your git repo folder directly using Syncthing, but use an .stignore file to exclude the files that you want to keep private (such as the .git directory). https://docs.syncthing.net/users/ignoring.html -Tim