git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Regression in git diff with stdin, with -R
@ 2023-09-09 20:42 Martin Storsjö
  2023-09-09 22:12 ` [PATCH] diff --no-index: fix -R with stdin René Scharfe
  0 siblings, 1 reply; 6+ messages in thread
From: Martin Storsjö @ 2023-09-09 20:42 UTC (permalink / raw)
  To: git; +Cc: Phillip Wood

Hi,

Since 1e3f26542a6ecd3006c2c0d5ccc0bae4a700f7e5, "diff --no-index: support 
reading from named pipes", one usecase about diffing with stdin has 
broken.

I see that this patch was preceded by adding some extra tests around 
diffing with stdin - but one case seem to have been missed.

"git diff --no-index - regularfile" still works fine as it did before, 
also "git diff --no-index regularfile -" also still works. (I.e. stdin can 
either be the first or second file argument - both work.)

However if using the -R option to reverse the diff direction, i.e. "git 
diff --no-index -R - regularfile" or "git diff --no-index -R regularfile 
-", I'm now getting the following error:

     fatal: stat '-': No such file or directory

// Martin


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

end of thread, other threads:[~2023-09-11 21:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-09 20:42 Regression in git diff with stdin, with -R Martin Storsjö
2023-09-09 22:12 ` [PATCH] diff --no-index: fix -R with stdin René Scharfe
2023-09-10 10:00   ` Phillip Wood
2023-09-10 18:41   ` Taylor Blau
2023-09-11 19:04   ` Junio C Hamano
2023-09-11 19:20   ` Martin Storsjö

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 NNTP newsgroup(s).