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

Re: [PATCH 3/4] git.el: Check for existing buffers on revert.

From
TTTommy Thorn <tommy-git@thorn.ws>
Date
Feb 9, 2008, 05:41 UTC
Message-ID
<47AD3CFC.7090401@thorn.ws>
In-Reply-To
<87prv7z84i.fsf@osv.gnss.ru>
Sergei Organov wrote:
> BTW, there is another related issue: what to do with buffers for which their
> files disappear (are removed). AFAIK PCVS doesn't close such buffers,
> that according to the above logic is confusing as well.
>   

Please don't revert such buffers! More than once have I been saved from a blunder by the fact that Emacs still had a copy of the accidentally erase/overwritten file. The normal Emacs behaviour is to prompt upon editing whether to edit the buffer since the file has changed.

Thanks Tommy

Previous: Sergei Organov
Message 5 of 5 in “git.el: Check for existing buffers on revert.”
  1. 3/4 git.el: Check for existing buffers on revert.Alexandre Julliard, Feb 7, 2008
  2. Sergei OrganovFeb 8, 2008
  3. Alexandre JulliardFeb 8, 2008
  4. Sergei OrganovFeb 8, 2008
  5. Tommy ThornFeb 9, 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.