Re: refining .gitignores

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Alex Riesen <raa.lkml@xxxxxxxxx> writes:

[...]

> .gitignore? Without "s"?

Yes, my mistake.  I added '*.c' to ".gitignore".

> Maybe your .c files are already added to index? Otherwise you have to
> use the second form. It shows known-to-Git ignored files.

They are in the index.  What I want is a list of files which are known
to git, which are matched by the default rules (in particular the
.gitignore files).

So that should be this?

    git ls-files --exclude-per-directory=.gitignore -i

But that shows nothing at all, and it still shows nothing if I add a
"builtin-add.c" as an argument to it (this file exists, and is in the
index).

"git add builtin-add.c" fails, complaining (correctly) that the path
is ignored by one of my .gitignore files.

We're obviously talking past one another somehow, or I have a broken
build of git?

[...]

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux