[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] vc-bzr.el: avoid stomping files across hardlink branches.
From: |
Karl Fogel |
Subject: |
Re: [PATCH] vc-bzr.el: avoid stomping files across hardlink branches. |
Date: |
Sat, 29 Nov 2008 14:05:23 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
>>>> Can we at least have an option to have emacs break hard links on edit?
>>> Yes, that would be good. It should work regardless of VC. People using
>>> hardlinked trees would know to use it.
>> So a variable, something like this?:
>
>> break-hardlinks-on-edit
>
>> "*When saving a file that exists under several names (i.e., has
>> multiple hardlinks), break the hardlink associated with
>> `buffer-file-name' and write to a new file, so that the other
>> instances of the file are not affected by the edits.
>> If `buffer-file-name' refers to a symlink, do not break the
>> symlink."
>
>> I'm happy to write this, just want to make sure I'm headed down the
>> right design path.
>
> That sounds good.
This is done now, in rev 1.14881 of lisp/files.el. (Except I went with
the singular `break-hardlink-on-save', since it only breaks one hardlink
at a time.)
-Karl