git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Git pathspecs difference in behavior between linux (wsl) and windows
@ 2021-05-13  6:57 Alexandre Remy
  2021-05-13  7:49 ` Johannes Sixt
  0 siblings, 1 reply; 8+ messages in thread
From: Alexandre Remy @ 2021-05-13  6:57 UTC (permalink / raw)
  To: git

Hi,

I do not understand why the same command works on linux and not on
windows. Is the pathspecs syntax differ or there is a problem on the
git windows version?

* On windows (git version 2.31.1.windows.1)

git status -- 'src/test.js'
On branch master
nothing to commit, working tree clean


* On linux (wsl: git version 2.25.1)

git status -- 'src/test.js'
On branch master
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   src/test.js
A classic git status gives the same result between linux and windows
(with correct file detected).

Regards,

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

end of thread, other threads:[~2021-05-13 21:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-13  6:57 Git pathspecs difference in behavior between linux (wsl) and windows Alexandre Remy
2021-05-13  7:49 ` Johannes Sixt
2021-05-13  8:05   ` Alexandre Remy
2021-05-13  9:31     ` Alexandre Remy
2021-05-13 13:02       ` Johannes Sixt
2021-05-13 20:08         ` Junio C Hamano
2021-05-13 21:03           ` Johannes Sixt
2021-05-13 21:17             ` Alexandre Remy

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.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).