comp.lang.ada
 help / color / mirror / Atom feed
From: Jere <jhb.chat@gmail.com>
Subject: Re: Yet another gnat bug
Date: Fri, 1 Feb 2019 18:00:39 -0800 (PST)
Date: 2019-02-01T18:00:39-08:00	[thread overview]
Message-ID: <d0f8e503-6781-435e-9b3a-b4b41ba07335@googlegroups.com> (raw)
In-Reply-To: <62cfed2a-f9b8-4df4-be2f-af3b9343cc66@googlegroups.com>

On Friday, February 1, 2019 at 4:26:29 PM UTC-5, George Shapovalov wrote:
> One other note: at first build the compiler may complain about missing obj/dbg dir. Please just run:
> mkdir -p obj/dbg 
> from the project dir (not src, one level above it).
> 
> I have obj/ in .gitignore to prevent it tracking generated files (and git tends to ignore the entire dir, not just its contents. At least my very short attempts to force it to ignore obj/* but not obj/ itself did not succeed. I preferred the annoyance of running once the mkdir command over spending more time trying to beat git when I set it up). 

What I do is put a "special" .gitignore in the obj directory that says ignore everything in this directory except for myself.  I don't include the obj directory in the top level .gitignore at all and rely on the special one inside the obj directory itself.  The special .gitignore file looks like this:

*
*/
!.gitignore

That's it, just 3 lines to say ignore everything in this directory, everything in any subdirectories, but don't ignore me.  Git will then add this .gitignore to your tracked files, securing the obj directory.

  parent reply	other threads:[~2019-02-02  2:00 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-01 14:51 Yet another gnat bug George Shapovalov
2019-02-01 18:47 ` Dmitry A. Kazakov
2019-02-01 21:32   ` George Shapovalov
2019-02-01 20:41 ` Simon Wright
2019-02-01 21:26   ` George Shapovalov
2019-02-01 23:17     ` Simon Wright
2019-02-02  7:16       ` George Shapovalov
2019-02-02  2:00     ` Jere [this message]
2019-02-02  7:04       ` George Shapovalov
2019-02-01 21:22 ` Per Sandberg
2019-02-01 21:34   ` George Shapovalov
2019-02-01 21:36     ` George Shapovalov
2019-02-02  7:13       ` Per Sandberg
2019-02-02 19:05         ` George Shapovalov
2019-02-02 21:37           ` Per Sandberg
2019-02-04 12:28             ` George Shapovalov
2019-02-04 15:30               ` joakimds
2019-02-04 16:11               ` Simon Wright
2019-02-05 19:16                 ` George Shapovalov
2019-02-05 20:37                   ` Simon Wright
2019-02-06 10:53                     ` George Shapovalov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox