From mboxrd@z Thu Jan 1 00:00:00 1970 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> In-reply-to: Your message of "Thu, 26 Mar 2015 18:49:51 -0000." References: <95A35504-71C5-4D0E-ABEB-5B545B689F35@bitblocks.com> Date: Thu, 26 Mar 2015 15:05:30 -0700 From: Bakul Shah Message-Id: <20150326220530.44ECEB827@mail.bitblocks.com> Subject: Re: [9fans] easier refreshing of acme wins Topicbox-Message-UUID: 4b81c9e6-ead9-11e9-9d60-3106f5b1d025 On Thu, 26 Mar 2015 18:49:51 -0000 Paul Lalonde wrote: > The feature direction I'd like when working with Git is for the window of a > git-changed file to become un-editable. This would require adding the idea > of a un-editable window, which is probably a bad idea. Not sure what you mean. If you git {pull,checkout,merge,...}, files you have been editing (but not yet saved) may already require merging. You may be better off using some client side git hook that checks the state of acme edited files and tries to do the right thing (not that I have ever used these hooks). > Meanwhile I use the script below to generate X commands to reload changed > windows. If I had a little more gumption (and less fear) I'd pipe the last > output to make acme execute the Edits. > > #!/bin/bash > cd `git rev-parse --git-dir`/.. > git diff --name-only HEAD~ | sed s+^+`pwd`/+ | sort > /tmp/foobar > 9p read acme/index | awk '{print $6}' | sort | comm -12 - /tmp/foobar | > sed 's+\(.*\)+Edit X=\1=,r+' Nice!