aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-06-09 13:33:30 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-06-09 13:33:30 +0200
commita78d499bd30d8d18e6170e959c66754aee8c544b (patch)
treef60ab0a8f621cf752c8e4ddd2d5cf6d77826602a
parent97fcffa04daf58c9dfed64d5e8360622dc28079d (diff)
Add build/ to bdep-new-generated build/.gitignore
Also tighten up the rest of the entries not to match in subdirectories.
-rw-r--r--bdep/new.cxx14
1 files changed, 8 insertions, 6 deletions
diff --git a/bdep/new.cxx b/bdep/new.cxx
index 0b6f766..fa1409c 100644
--- a/bdep/new.cxx
+++ b/bdep/new.cxx
@@ -1267,9 +1267,10 @@ namespace bdep
if (vc == vcs::git)
{
open (bd / ".gitignore");
- os << "config." << build_ext << endl
- << "root/" << endl
- << "bootstrap/" << endl;
+ os << "/config." << build_ext << endl
+ << "/root/" << endl
+ << "/bootstrap/" << endl
+ << "build/" << endl;
os.close ();
}
}
@@ -2032,9 +2033,10 @@ namespace bdep
if (vc == vcs::git)
{
open (tbd / ".gitignore");
- os << "config." << build_ext << endl
- << "root/" << endl
- << "bootstrap/" << endl;
+ os << "/config." << build_ext << endl
+ << "/root/" << endl
+ << "/bootstrap/" << endl
+ << "build/" << endl;
os.close ();
}