# .gitignore alleged bug

3 messages from 2019-02-22 to 2019-02-25. Participants: Celestino, Federico, brian m. carlson.
Thread: https://gitlist.dev/t/50563

## Celestino, Federico, 2019-02-22 15:39

Subject: .gitignore alleged bug
Message-ID: <b23df617fddf45389406da2360dceb63@SRV-ERC-MAIL01.XCMG-ERC.LOCAL>
URL: https://gitlist.dev/e/b23df617fddf45389406da2360dceb63%40SRV-ERC-MAIL01.XCMG-ERC.LOCAL

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

Git version: 2.20.1.windows.1

Freundliche Grüße / Kind regards
i.A. Federico Celestino
Entwicklungsingenieur


Fon +49 2151 7830 324
Fax +49 2151 7830 499
www.xcmg-erc.com
Celestino@xcmg-erc.com

------------------------------------------------------------------------------------
XCMG European Research Center GmbH
Europark Fichtenhain B4
47807 Krefeld
Deutschland
Amtsgericht Krefeld
Handelsregister HRB 14302
Geschäftsführer: Dr.-Ing. Oliver-Carlos Göhler, Dr.-Ing. Hui Sun 
------------------------------------------------------------------------------------ 

```

## brian m. carlson, 2019-02-23 00:23

Subject: Re: .gitignore alleged bug
Message-ID: <20190223002339.GA601925@genre.crustytoothpaste.net>
URL: https://gitlist.dev/e/20190223002339.GA601925%40genre.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:
> 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

```

## Celestino, Federico, 2019-02-25 07:38

Subject: RE: .gitignore alleged bug
Message-ID: <f8697f8e02614842b35931346c2d81e7@SRV-ERC-MAIL01.XCMG-ERC.LOCAL>
URL: https://gitlist.dev/e/f8697f8e02614842b35931346c2d81e7%40SRV-ERC-MAIL01.XCMG-ERC.LOCAL
In-Reply-To: <20190223002339.GA601925@genre.crustytoothpaste.net>

```
Dear Mr Carlson,

Yes, you are right. Thanks for the support.

Freundliche Grüße / Kind regards
i.A. Federico Celestino
Entwicklungsingenieur


Fon +49 2151 7830 324
Fax +49 2151 7830 499
www.xcmg-erc.com
Celestino@xcmg-erc.com

------------------------------------------------------------------------------------
XCMG European Research Center GmbH
Europark Fichtenhain B4
47807 Krefeld
Deutschland
Amtsgericht Krefeld
Handelsregister HRB 14302
Geschäftsführer: Dr.-Ing. Oliver-Carlos Göhler, Dr.-Ing. Hui Sun 
------------------------------------------------------------------------------------ 
-----Original Message-----
From: brian m. carlson [mailto:sandals@crustytoothpaste.net] 
Sent: 23 February 2019 01:24
To: Celestino, Federico <Celestino@xcmg-erc.com>
Cc: git@vger.kernel.org
Subject: Re: .gitignore alleged bug

On Fri, Feb 22, 2019 at 03:39:53PM +0000, Celestino, Federico wrote:
> 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

```
