git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git ignore logic does not work as advertised
@ 2013-06-15 16:18 Thomas Koch
  2013-06-15 17:07 ` John Keeping
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Koch @ 2013-06-15 16:18 UTC (permalink / raw)
  To: git

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

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

* Re: git ignore logic does not work as advertised
  2013-06-15 16:18 git ignore logic does not work as advertised Thomas Koch
@ 2013-06-15 17:07 ` John Keeping
  2013-06-16  8:58   ` Thomas Koch
  0 siblings, 1 reply; 3+ messages in thread
From: John Keeping @ 2013-06-15 17:07 UTC (permalink / raw)
  To: Thomas Koch; +Cc: git

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.

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

* Re: git ignore logic does not work as advertised
  2013-06-15 17:07 ` John Keeping
@ 2013-06-16  8:58   ` Thomas Koch
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Koch @ 2013-06-16  8:58 UTC (permalink / raw)
  To: John Keeping; +Cc: git

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

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

end of thread, other threads:[~2013-06-16  8:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-15 16:18 git ignore logic does not work as advertised Thomas Koch
2013-06-15 17:07 ` John Keeping
2013-06-16  8:58   ` Thomas Koch

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 NNTP newsgroup(s).