Antw: Re: Q: Ignore ./foo, but not script/foo

2018-07-19 Thread Ulrich Windl
>>> Sebastian Staudt schrieb am 19.07.2018 um 09:55 in Nachricht : > Hello Ulrich, > > if you want to ignore a file in the root of the repository (and only > there) this is the correct syntax: > > /foo Hi! Thanks, you are perfectly right: It works, and actually, when read carefully

Re: Q: Ignore ./foo, but not script/foo

2018-07-19 Thread Ævar Arnfjörð Bjarmason
On Thu, Jul 19 2018, Timothy Rice wrote: >> How did you come up with this "./" syntax? > > It is a Unix thing: "./" or just "." refers to the current directory. > > When calling scripts or programs in the current directory from a Unix > command line, it is required to refer to them as, say,

Re: Q: Ignore ./foo, but not script/foo

2018-07-19 Thread Konstantin Khomoutov
On Thu, Jul 19, 2018 at 07:06:57PM +1000, Timothy Rice wrote: [...] > Most people do put "." in their PATH for convenience [...] IMO this is a gross overstatement: personally, I know of no person using a Unix-like operation system who does this.

Re: Q: Ignore ./foo, but not script/foo

2018-07-19 Thread Timothy Rice
> How did you come up with this "./" syntax? It is a Unix thing: "./" or just "." refers to the current directory. When calling scripts or programs in the current directory from a Unix command line, it is required to refer to them as, say, "./foo" (not just "foo") -- unless "." is in your PATH.

Re: Q: Ignore ./foo, but not script/foo

2018-07-19 Thread 3Ævar Arnfjörð Bjarmason
On Thu, Jul 19 2018, Ulrich Windl wrote: > 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

Q: Ignore ./foo, but not script/foo

2018-07-19 Thread Ulrich Windl
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