From: Karl Fogel <kfogel@red-bean.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Tim Penhey <tim@penhey.net>, Barry Warsaw <barry@python.org>,
Emacs Development <emacs-devel@gnu.org>
Subject: Re: [PATCH] vc-bzr.el: avoid stomping files across hardlink branches.
Date: Sat, 29 Nov 2008 14:05:23 -0500 [thread overview]
Message-ID: <87r64ul5e4.fsf@red-bean.com> (raw)
In-Reply-To: <jwvk5bb0ykf.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Mon, 10 Nov 2008 21:47:03 -0500")
Stefan Monnier <monnier@iro.umontreal.ca> 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
next prev parent reply other threads:[~2008-11-29 19:05 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200810292207.58558.tim@penhey.net>
2008-11-09 3:44 ` [PATCH] vc-bzr.el: avoid stomping files across hardlink branches Karl Fogel
2008-11-09 4:33 ` Miles Bader
2008-11-09 4:44 ` Karl Fogel
2008-11-09 15:03 ` Stefan Monnier
2008-11-10 2:29 ` Tim Penhey
2008-11-10 3:31 ` Stefan Monnier
2008-11-10 22:39 ` Karl Fogel
2008-11-11 2:47 ` Stefan Monnier
2008-11-29 19:05 ` Karl Fogel [this message]
2008-12-01 20:10 ` vc-dir header for bzr (was: Re: [PATCH] vc-bzr.el: avoid stomping files across hardlink branches.) Dan Nicolaescu
2008-12-01 20:30 ` vc-dir header for bzr Karl Fogel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r64ul5e4.fsf@red-bean.com \
--to=kfogel@red-bean.com \
--cc=barry@python.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=tim@penhey.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).