aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-03-20 17:22:27 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-03-20 17:22:27 +0200
commit57d7e66826ebb58945b51eac541f30823294412e (patch)
tree822f8b209c131af45a1bd94d610a3f6b471a57b6
parentd4fcd80e1131ca1b16bef5b4c0d2d7a1ebffd19b (diff)
Add .bdep/ to .gitignore in new command
-rw-r--r--bdep/new.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/bdep/new.cxx b/bdep/new.cxx
index 550acac..d43bfa9 100644
--- a/bdep/new.cxx
+++ b/bdep/new.cxx
@@ -183,8 +183,12 @@ namespace bdep
//
if (!o.no_git ())
{
+ // Use POSIX directory separators here.
+ //
os.open (f = prj / ".gitignore");
- os << "# Compiler/linker output." << endl
+ os << bdep_dir.string () << '/' << endl
+ << endl
+ << "# Compiler/linker output." << endl
<< "#" << endl
<< "*.d" << endl
<< "*.t" << endl