git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] git.el: automatically revert emacs buffers

From
SOSergei Organov <osv@javad.com>
Date
Feb 7, 2008, 13:03 UTC
Message-ID
<87tzkk2a12.fsf@osv.gnss.ru>
In-Reply-To
<87ir10q5yy.fsf@wine.dyndns.org>
Alexandre Julliard <julliard@winehq.org> writes:
Show 14 quoted lines
> Sergei Organov <osv@javad.com> writes:
>
>> If new custom variable git-auto-revert is 't', after git-revert-file,
>> revert corresponding emacs buffers from reverted files provided the
>> buffers were not changed. This is how pcl-cvs behaves.
>>
>> * git-auto-revert: new customizable variable.
>> * git-revert-some-buffers: new function.
>> * git-revert-file: call git-revert-some-buffers.
>
> I had implemented this a bit differently in the patch series I just
> sent, I did it the VC way by also checking for modified buffers and
> refusing to revert their corresponding files. I didn't add a custom
> variable for it though, so I'll merge that part of your patch.

I don't think the custom variable is necessary. I added it only because PCL-CVS had it, even though I didn't ever customize it in PCL-CVS. So please feel free to drop my patch entirely.

-- Sergei Organov.
Previous: Alexandre Julliard
Message 3 of 3 in “git.el: automatically revert emacs buffers”
  1. git.el: automatically revert emacs buffersSergei Organov, Jan 21, 2008
  2. Alexandre JulliardFeb 7, 2008
  3. Sergei OrganovFeb 7, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.