git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: .gitignore alleged bug

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Feb 23, 2019, 00:23 UTC
Message-ID
<20190223002339.GA601925@genre.crustytoothpaste.net>
In-Reply-To
<b23df617fddf45389406da2360dceb63@SRV-ERC-MAIL01.XCMG-ERC.LOCAL>
On Fri, Feb 22, 2019 at 03:39:53PM +0000, Celestino, Federico wrote:
Show 15 quoted lines
> Dear Support Team,
> 
> I am facing a serious issue with .gitignore (see attachment).
> 
> The problem is that the folder contents of 04 - Software/SW Code/STM32/Lib/Drivers/CMSIS/Device/ are ignored because of a suspected misinterpretation of .gitignore.
> 
> Here are some results that you could find useful:
> 
> $ git clean -ndX
> Would remove 04 - Software/SW Code/STM32/Lib/Drivers/CMSIS/Device/
> 
> $ git check-ignore -v "04 - Software/SW Code/STM32/Lib/Drivers/CMSIS/Device/"
> 04 - Software/SW Code/STM32/Lib/Drivers/CMSIS/.gitignore:2:Device       04 - Software/SW Code/STM32/Lib/Drivers/CMSIS/Device/
> 
> Since in the path there is no '~' (tilde) character, it seems a bug to me.

It looks like you have a .gitignore file in the "CMSIS" directory that contains the string "Device", which is why this directory is ignored. Is that indeed the case?

-- 
brian m. carlson: Houston, Texas, US
OpenPGP: https://keybase.io/bk2204
Previous: Celestino, FedericoNext: Celestino, Federico
Message 2 of 3 in “.gitignore alleged bug”
  1. Celestino, FedericoFeb 22, 2019
  2. brian m. carlsonFeb 23, 2019
  3. Celestino, FedericoFeb 25, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.