From a78d499bd30d8d18e6170e959c66754aee8c544b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 9 Jun 2020 13:33:30 +0200 Subject: Add build/ to bdep-new-generated build/.gitignore Also tighten up the rest of the entries not to match in subdirectories. --- bdep/new.cxx | 14 ++++++++------ 1 file 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 (); } -- cgit v1.1