mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Paul Eggert <eggert@cs.ucla.edu>, Jim Meyering <meyering@fb.com>,
	Nathan Chancellor <nathan@kernel.org>,
	Guenter Roeck <linux@roeck-us.net>,
	stable <stable@vger.kernel.org>,
	patches@lists.linux.dev,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	shuah@kernel.org, patches@kernelci.org,
	lkft-triage@lists.linaro.org, Pavel Machek <pavel@denx.de>,
	Jon Hunter <jonathanh@nvidia.com>,
	Florian Fainelli <f.fainelli@gmail.com>,
	Sudip Mukherjee <sudipm.mukherjee@gmail.com>,
	srw@sladewatkins.net, rwarsow@gmx.de
Subject: Re: diffutils file mode (was Re: [PATCH 5.15 00/37] 5.15.96-rc2 review)
Date: Fri, 24 Feb 2023 11:32:47 -0800	[thread overview]
Message-ID: <20230224113247.07a660eb44198499314a9e96@linux-foundation.org> (raw)
In-Reply-To: <CAHk-=wiZ9vaM23eW2k4R-ovtcWLyL8PWvnCG=RyeY4XXgZ6BCg@mail.gmail.com>

On Fri, 24 Feb 2023 11:16:52 -0800 Linus Torvalds <torvalds@linux-foundation.org> wrote:

> 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).

yeah, irritating.

Can we use git instead of diff?  I tried once, but it didn't work -
perhaps because it didn't like doing stuff outside a git repo.

However, trying it now...

hp2:/home/akpm> mkdir foo
hp2:/home/akpm> cd foo
hp2:/home/akpm/foo> date > a
hp2:/home/akpm/foo> cp a b
hp2:/home/akpm/foo> chmod +x a
hp2:/home/akpm/foo> git diff a b
diff --git a/a b/b              
old mode 100755
new mode 100644

  reply	other threads:[~2023-02-24 19:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-24 19:16 Linus Torvalds
2023-02-24 19:32 ` Andrew Morton [this message]
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

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230224113247.07a660eb44198499314a9e96@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=eggert@cs.ucla.edu \
    --cc=f.fainelli@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=jonathanh@nvidia.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=lkft-triage@lists.linaro.org \
    --cc=meyering@fb.com \
    --cc=nathan@kernel.org \
    --cc=patches@kernelci.org \
    --cc=patches@lists.linux.dev \
    --cc=pavel@denx.de \
    --cc=rwarsow@gmx.de \
    --cc=shuah@kernel.org \
    --cc=srw@sladewatkins.net \
    --cc=stable@vger.kernel.org \
    --cc=sudipm.mukherjee@gmail.com \
    --cc=torvalds@linux-foundation.org \
    /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.
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®