[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-patch] Patch fails to replace unmodified files

From: Andrew Church
Subject: Re: [bug-patch] Patch fails to replace unmodified files
Date: Tue, 02 Jun 2015 05:07:38 JST

>> At some point in the past few years, patch stopped replacing files which
>> were not modified due to all hunks failing to apply.  This breaks the
>> following pattern:
>that's when emacs is configured not to break hard links; the same would
>happen if you edit any other file that patch hasn't modified.

Which is my intention if I'm editing a file I know to be hardlinked (and
that's why I have emacs configured in that manner.  The problem is:

>> ...because patch leaves the original (hardlinked) file untouched when it
>> detects that all hunks have failed.  This is particularly annoying since
>> it means patch's behavior is not consistent with respect to hard links:

because I expect any file visited by patch to be consistently either
modified in place (preserving hard inks) or replaced (breaking hard
links).  If the intent is to change patch's behavior to modify files in
place, that's fine; I can change my processes accordingly.  However, the
current behavior is not consistent, so yes, it is a bug.

  --Andrew Church

reply via email to

[Prev in Thread] Current Thread [Next in Thread]