Re: [9fans] Acme and Git

2017-02-16 Thread Paul Lalonde
I'll give Watch and a bit of scripting a shot. I couldn't find a git "HEAD changed" hook to tie to, so Watch is pretty much the right thing. Thanks! On Wed, Feb 15, 2017 at 9:04 PM Erik Quanstrom wrote: > try writing the file? 😀 > > On Feb 15, 2017 5:05 AM, Paul Lalonde wrote: > > I know I'm

Re: [9fans] Acme and Git

2017-02-16 Thread Bakul Shah
You can use a cross platform file system event notification package like fsnotify/fsnotify or rjeczalik/notify, both on github. Instead of HEAD, may be just watch .git/index and when it changes, do git ls-files and see what changed. This will also catch local git add etc. though this probably do