mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* diffutils file mode (was Re: [PATCH 5.15 00/37] 5.15.96-rc2 review)
@ 2023-02-24 19:16 Linus Torvalds
  2023-02-24 19:32 ` Andrew Morton
  2023-02-24 20:20 ` Paul Eggert
  0 siblings, 2 replies; 6+ messages in thread
From: Linus Torvalds @ 2023-02-24 19:16 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Paul Eggert, Jim Meyering
  Cc: Nathan Chancellor, Guenter Roeck, stable, patches,
	Linux Kernel Mailing List, Andrew Morton, shuah, patches,
	lkft-triage, Pavel Machek, Jon Hunter, Florian Fainelli,
	Sudip Mukherjee, srw, rwarsow

On Fri, Feb 24, 2023 at 8:55 AM Greg Kroah-Hartman
<gregkh@linuxfoundation.org> wrote:
>
> Ok, it's not quilt's fault, it's GNU diff's fault from what I can tell.
> quilt relies on diff to generate the patch, and I can't figure out how
> to get diff to notice file permissions at all.  Am I just missing
> an option to 'diff' somewhere that I can't find in the manual?

No, I think you're right.

GNU patch was updated long ago to understand and apply the extended
git patch data.

But as far as I can tell, GNU diffutils have never actually grown the
ability to generate those extensions, even though at least the mode
bit one should be fairly simple (the file rename/copy ones are rather
more complicated, but those are just a "make diffs more legible and
compact" convenience thing, unlike the executable bit thing that
allows for scripts to remain executable).

> Anyway, quilt can handle replacing what it uses for 'diff', so I'll just
> replace it with 'git diff' and that seems to solve the problem for me!

That does sound like the right solution.

I don't think the diffutils people really care, but let's cc Paul
Eggert and Jim Meyering anyway, just in case. Because looking at the
diffutils git tree, it's still actively maintained even if the patch
load seems quite low.

Maybe there's some patch floating around that would allow diffutils to
also add those mode change lines. A quick google didn't find anything,
but Paul and Jim would probably know (or can just say "yeah, not even
interested").

                Linus

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-02-24 20:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-24 19:16 diffutils file mode (was Re: [PATCH 5.15 00/37] 5.15.96-rc2 review) Linus Torvalds
2023-02-24 19:32 ` Andrew Morton
2023-02-24 20:00   ` Linus Torvalds
2023-02-24 20:20 ` Paul Eggert
2023-02-24 20:37   ` Linus Torvalds
2023-02-24 20:51   ` Slade Watkins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®