Re: [PATCH 1/1] gitignore: do not ignore include/linux/
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Mar 5, 2010, 10:43 UTC
- Message-ID
- <m3pr3jkq26.fsf@localhost.localdomain>
- In-Reply-To
- <1267780845-10547-1-git-send-email-jslaby@suse.cz>
Jiri Slaby <jslaby@suse.cz> writes:
Show 42 quoted lines
> linux entry in .gitignore means that everything in include/linux/ > gets ignored with git 1.7. > > Prepend a slash to entries which are toplevel to avoid that > > Signed-off-by: Jiri Slaby <jslaby@suse.cz> > Cc: Johannes Sixt <j.sixt@viscovery.net> > --- > .gitignore | 20 ++++++++++---------- > 1 files changed, 10 insertions(+), 10 deletions(-) > > diff --git a/.gitignore b/.gitignore > index efab0eb..fe6ebb9 100644 > --- a/.gitignore > +++ b/.gitignore > @@ -34,16 +34,16 @@ modules.builtin > # > # Top-level generic files > # > -tags > -TAGS > -linux > -vmlinux > -vmlinuz > -System.map > -Module.markers > -Module.symvers > -!.gitignore > -!.mailmap > +/tags > +/TAGS > +/linux > +/vmlinux > +/vmlinuz > +/System.map > +/Module.markers > +/Module.symvers > +!/.gitignore > +!/.mailmap > > # > # Generated include files
Actually you want to *not ignore* .gitignore and .mailmap (and .gitattributes which is missing here) anywhere, not only as top-level file. So .gitignore and .mailmap should not be prepended with slash.
# # Top-level generic files # -tags -TAGS -linux -vmlinux -vmlinuz -System.map -Module.markers -Module.symvers +/tags +/TAGS +/linux +/vmlinux +/vmlinuz +/System.map +/Module.markers +/Module.symvers !.gitignore !.mailmap
-- Jakub Narebski Poland ShadeHawk on #git