[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: |
Mon, 10 Nov 2008 17:39:29 -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.
-Karl