From 57d7e66826ebb58945b51eac541f30823294412e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 20 Mar 2018 17:22:27 +0200 Subject: Add .bdep/ to .gitignore in new command --- bdep/new.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.1