Re: git refuses to switch to older branches
- From
Junio C Hamano <junkio@cox.net>
- Date
- Aug 19, 2006, 22:39 UTC
- Message-ID
- <7vac601hbb.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <20060819202558.GE30022@admingilde.org>
Martin Waitz <tali@admingilde.org> writes:
Show 5 quoted lines
> This safety measure is quite useful normally, but for files that are > explicitly marked as to-be-ignored it should not be neccessary. > > But all the code that handles .gitignore is only used by ls-files now. > Does it make sense to add exclude handling to unpack-trees.c, too?
In principle, I am not opposed to the idea of making read-tree take the ignore information into consideration.
But I would suggest you to be _extremely_ careful if you want to try this. I do not have an example offhand, but I would not be surprised at all if there is a valid use case where it is useful to have a pattern that matches a tracked file in .gitignore file.