* Git add claims path is ignored, but git check-ignore returns no results [not found] <1229468090.3098018.1565627099656.ref@mail.yahoo.com> @ 2019-08-12 16:24 ` geoffsimons 2019-08-12 16:35 ` Jeff King 0 siblings, 1 reply; 3+ messages in thread From: geoffsimons @ 2019-08-12 16:24 UTC (permalink / raw) To: git Hi, I’m struggling with this. Adding a renamed file to git claims that it is ignored, but git check-ignore returns no results. I can’t find anything relevant in .git/info/exclude either, or any of the .gitignore files I could find. git check-ignore .\Source\UI\Website\LiveFeeds\Releases\IO\ReleasesSerializer.cs git add .\Source\ui\Website\LiveFeeds\Releases\io\ReleasesSerializer.cs The following paths are ignored by one of your .gitignore files: Source/ui/Website/LiveFeeds/Releases/io/ReleasesSerializer.cs Use -f if you really want to add them. I get a similar result for adding files in that directory, or the parent directory (releases), but the grandparent directory (livefeeds) works fine. Any ideas what might be causing this? Regards, Geoff ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Git add claims path is ignored, but git check-ignore returns no results 2019-08-12 16:24 ` Git add claims path is ignored, but git check-ignore returns no results geoffsimons @ 2019-08-12 16:35 ` Jeff King 2019-08-12 16:50 ` geoffsimons 0 siblings, 1 reply; 3+ messages in thread From: Jeff King @ 2019-08-12 16:35 UTC (permalink / raw) To: geoffsimons; +Cc: git On Mon, Aug 12, 2019 at 04:24:59PM +0000, geoffsimons@aim.com wrote: > I can’t find anything relevant in .git/info/exclude either, or any of > the .gitignore files I could find. > > git check-ignore .\Source\UI\Website\LiveFeeds\Releases\IO\ReleasesSerializer.cs > git add .\Source\ui\Website\LiveFeeds\Releases\io\ReleasesSerializer.cs > The following paths are ignored by one of your .gitignore files: > Source/ui/Website/LiveFeeds/Releases/io/ReleasesSerializer.cs > Use -f if you really want to add them. > > I get a similar result for adding files in that directory, or the > parent directory (releases), but the grandparent directory (livefeeds) > works fine. Any ideas what might be causing this? I notice that your "add" and "check-ignore" commands differ in the case of "UI". I think both commands should work correctly when on a case-insensitive filesystem (and a few checks I did after setting core.ignorecase manually seem to confirm this). But maybe try it with "ui" in the check-ignore command and see if that changes anything? Another thing I notice is that you're using Windows-style back-slashes for the path separators (whereas internally in Git, everything is front-slashes). AFAIK that's supposed to work everywhere on Windows, but I wouldn't be surprised if there are corner cases where it doesn't. Does switching to: git check-ignore ./Source/ui/Website/LiveFeeds/Releases/IO/ReleasesSerializer.cs help? -Peff ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Git add claims path is ignored, but git check-ignore returns no results 2019-08-12 16:35 ` Jeff King @ 2019-08-12 16:50 ` geoffsimons 0 siblings, 0 replies; 3+ messages in thread From: geoffsimons @ 2019-08-12 16:50 UTC (permalink / raw) To: peff; +Cc: git Hi Peff, Thanks, I didn't think that would make any difference either, but changing the case resolved it! I'm now able to find the relevant line in the .gitignore file. Regards, Geoff -----Original Message----- From: Jeff King <peff@peff.net> To: geoffsimons <geoffsimons@aim.com> CC: git <git@vger.kernel.org> Sent: Mon, 12 Aug 2019 17:35 Subject: Re: Git add claims path is ignored, but git check-ignore returns no results On Mon, Aug 12, 2019 at 04:24:59PM +0000, geoffsimons@aim.com wrote: > I can’t find anything relevant in .git/info/exclude either, or any of > the .gitignore files I could find. > > git check-ignore .\Source\UI\Website\LiveFeeds\Releases\IO\ReleasesSerializer.cs > git add .\Source\ui\Website\LiveFeeds\Releases\io\ReleasesSerializer.cs > The following paths are ignored by one of your .gitignore files: > Source/ui/Website/LiveFeeds/Releases/io/ReleasesSerializer.cs > Use -f if you really want to add them. > > I get a similar result for adding files in that directory, or the > parent directory (releases), but the grandparent directory (livefeeds) > works fine. Any ideas what might be causing this? I notice that your "add" and "check-ignore" commands differ in the case of "UI". I think both commands should work correctly when on a case-insensitive filesystem (and a few checks I did after setting core.ignorecase manually seem to confirm this). But maybe try it with "ui" in the check-ignore command and see if that changes anything? Another thing I notice is that you're using Windows-style back-slashes for the path separators (whereas internally in Git, everything is front-slashes). AFAIK that's supposed to work everywhere on Windows, but I wouldn't be surprised if there are corner cases where it doesn't. Does switching to: git check-ignore ./Source/ui/Website/LiveFeeds/Releases/IO/ReleasesSerializer.cs help? -Peff ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-08-12 16:50 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <1229468090.3098018.1565627099656.ref@mail.yahoo.com> 2019-08-12 16:24 ` Git add claims path is ignored, but git check-ignore returns no results geoffsimons 2019-08-12 16:35 ` Jeff King 2019-08-12 16:50 ` geoffsimons
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).