All of lore.kernel.org
 help / color / mirror / Atom feed
* Q: Ignore ./foo, but not script/foo
@ 2018-07-19  7:38 Ulrich Windl
  2018-07-19  8:01 ` 3Ævar Arnfjörð Bjarmason
       [not found] ` <CA+xP2SZJ0VN0Y7SChAx1a8joVMKMU2R9d0je801i=9SuLicF3w@mail.gmail.com>
  0 siblings, 2 replies; 6+ messages in thread
From: Ulrich Windl @ 2018-07-19  7:38 UTC (permalink / raw)
  To: git

Hi!

I have a (simple) question I could not answer elegantly from the gitignore(5) manual page:

A project produces a "foo" binary in the root directory that I want to ignore (So I put "foo" into .gitignore)
Unfortunately I found out taht I cannot have a "script/foo" added while "foo" is in .gitignore.
So I changed "foo" to "./foo" in .gitignore. I can could add "script/foo", but now "foo" is not ignored any more!

Is there as solution other than:?
--
foo
!script/foo
!bla/foo
#etc.
--

If "foo" is one exception to generally using foo elsewhere, it seems to be counterproductive to have to add exceptions for all the cases that are not exceptions, while "foo" is the only exception...

Did I miss something? If so, maybe add it to a future manual page.

Regards,
Ulrich



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

end of thread, other threads:[~2018-07-19 11:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-19  7:38 Q: Ignore ./foo, but not script/foo Ulrich Windl
2018-07-19  8:01 ` 3Ævar Arnfjörð Bjarmason
2018-07-19  9:06   ` Timothy Rice
2018-07-19  9:22     ` Konstantin Khomoutov
2018-07-19  9:30     ` Ævar Arnfjörð Bjarmason
     [not found] ` <CA+xP2SZJ0VN0Y7SChAx1a8joVMKMU2R9d0je801i=9SuLicF3w@mail.gmail.com>
2018-07-19 11:00   ` Antw: " Ulrich Windl

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.