Re: dvcs-autosync+git is broken by design

2012-03-05 Thread Adam Spiers
On Mon, Mar 5, 2012 at 12:18 AM, Chanoch (Ken) Bloom wrote: > On Sun, 2012-03-04 at 20:08 +0100, Dieter Plaetinck wrote: >> On Sun, 4 Mar 2012 17:19:25 + >> Adam Spiers wrote: >>  I have not yet used dvcs-autosync in anger; >> what do you mean? > > It's a stretch from a military idiom. To say

Re: dvcs-autosync+git is broken by design

2012-03-05 Thread Dieter Plaetinck
On Sun, 4 Mar 2012 22:39:22 + Adam Spiers wrote: > Sure - I don't mind changes to existing files being autosynced, > but I want to manually add new files to the repo myself. Then you should change "startupcmd = git add -A" to "git add -u", although that's vulnerable to race conditions: if y

Re: dvcs-autosync+git is broken by design

2012-03-05 Thread René Mayrhofer
On 03/04/2012 11:39 PM, Adam Spiers wrote: addcmd = echo "New untracked file %s" Am I right in thinking that in this case, there is no synchronisation issue to worry about? synchronisation issue? what do you mean? Synchronisation as in, race conditions between manual operations on the files

Re: dvcs-autosync+git is broken by design

2012-03-05 Thread Adam Spiers
On Mon, Mar 5, 2012 at 10:06 AM, Dieter Plaetinck wrote: > On Sun, 4 Mar 2012 22:39:22 + > Adam Spiers wrote: > >> Sure - I don't mind changes to existing files being autosynced, >> but I want to manually add new files to the repo myself. > > Then you should change "startupcmd = git add -A" t