# git ignore logic does not work as advertised

3 messages from 2013-06-15 to 2013-06-16. Participants: Thomas Koch, John Keeping.
Thread: https://gitlist.dev/t/34150

## Thomas Koch, 2013-06-15 16:18

Subject: git ignore logic does not work as advertised
Message-ID: <1766682.Es1SNxTkk2@x121e>
URL: https://gitlist.dev/e/1766682.Es1SNxTkk2%40x121e

```
Hi,

I'm using vcsh[1] to have my dotfiles in GIT. With that I use a .gitignore file 
referenced by core.excludesfile that looks like this:

# ignore everything by default
*

# but do not ignore emacs stuff
!.emacs.d/

# but than again please ignore backup files inside the .emacs.d folder
.emacs.d/backups

Now I'd expect git status to show everything in .emacs.d but not to show 
.emacs.d/backups. However the .emacs.d/backups folder is still shown in git 
status. I'd say that this is not in line with the man page and might be 
considered a bug.

[1] https://github.com/RichiH/vcsh

Thank you,

Thomas Koch, http://www.koch.ro

```

## John Keeping, 2013-06-15 17:07

Subject: Re: git ignore logic does not work as advertised
Message-ID: <20130615170759.GH23890@serenity.lan>
URL: https://gitlist.dev/e/20130615170759.GH23890%40serenity.lan
In-Reply-To: <1766682.Es1SNxTkk2@x121e>

```
On Sat, Jun 15, 2013 at 06:18:46PM +0200, Thomas Koch wrote:
> I'm using vcsh[1] to have my dotfiles in GIT. With that I use a .gitignore file 
> referenced by core.excludesfile that looks like this:
> 
> # ignore everything by default
> *
> 
> # but do not ignore emacs stuff
> !.emacs.d/
> 
> # but than again please ignore backup files inside the .emacs.d folder
> .emacs.d/backups
> 
> Now I'd expect git status to show everything in .emacs.d but not to show 
> .emacs.d/backups. However the .emacs.d/backups folder is still shown in git 
> status. I'd say that this is not in line with the man page and might be 
> considered a bug.

Which version of Git are you using?  You may be hitting a regression
that was introduced in Git 1.8.3 and is fixed in Git 1.8.3.1.

```

## Thomas Koch, 2013-06-16 08:58

Subject: Re: git ignore logic does not work as advertised
Message-ID: <2750100.i86W7SrYHs@x121e>
URL: https://gitlist.dev/e/2750100.i86W7SrYHs%40x121e
In-Reply-To: <20130615170759.GH23890@serenity.lan>

```
On Saturday, June 15, 2013 06:07:59 PM John Keeping wrote:
> Which version of Git are you using?  You may be hitting a regression
> that was introduced in Git 1.8.3 and is fixed in Git 1.8.3.1.
updated from 1.8.3 to 1.8.3.1 and solved. Thank you.

Thomas Koch, http://www.koch.ro

```
