emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Adam Porter <adam@alphapapa.net>
To: emacs-orgmode@gnu.org
Subject: Re: [OT] Git plus Syncthing: breaking hard links
Date: Wed, 6 Apr 2016 23:47:40 +0000 (UTC)	[thread overview]
Message-ID: <loom.20160407T014111-646@post.gmane.org> (raw)
In-Reply-To: 87pou38cjd.fsf@ericabrahamsen.net

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!

  parent reply	other threads:[~2016-04-06 23:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-05  6:34 [OT] Git plus Syncthing: breaking hard links Eric Abrahamsen
2016-04-05  7:58 ` Eric S Fraga
2016-04-05  8:04   ` Eric Abrahamsen
2016-04-05 12:45 ` Nick Dokos
2016-04-05 23:29   ` briangpowell .
2016-04-05 22:53 ` Tim Howes
2016-04-06  6:41   ` Eric Abrahamsen
2016-04-06 23:38     ` Adam Porter
2016-04-06 23:47     ` Adam Porter [this message]
2016-04-07  0:48       ` Eric Abrahamsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20160407T014111-646@post.gmane.org \
    --to=adam@alphapapa.net \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).