diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-03-20 17:22:27 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-03-20 17:22:27 +0200 |
commit | 57d7e66826ebb58945b51eac541f30823294412e (patch) | |
tree | 822f8b209c131af45a1bd94d610a3f6b471a57b6 | |
parent | d4fcd80e1131ca1b16bef5b4c0d2d7a1ebffd19b (diff) |
Add .bdep/ to .gitignore in new command
-rw-r--r-- | bdep/new.cxx | 6 |
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 |