diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-12-09 12:58:04 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-12-09 12:58:04 +0200 |
commit | 4353c43760f361d60f80455e8447cc55bd22588b (patch) | |
tree | 58566328bc866743cddb6b887a901d74e4bc93c0 /build2/utility.hxx | |
parent | 9fd7e2b46be27b959c0e84620fca4314f129ce02 (diff) |
Fix git commit id calculation
Diffstat (limited to 'build2/utility.hxx')
-rw-r--r-- | build2/utility.hxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/build2/utility.hxx b/build2/utility.hxx index 7d1ffc6..8ba4fe1 100644 --- a/build2/utility.hxx +++ b/build2/utility.hxx @@ -180,16 +180,19 @@ namespace build2 run_search (const path&, bool init, const dir_path& fallback = dir_path ()); process - run_start (const process_path&, const char* args[], bool error); + run_start (const process_path&, const char* args[], bool error = true); inline process - run_start (const char* args[], bool error) + run_start (const char* args[], bool error = true) { return run_start (run_search (args[0]), args, error); } bool - run_finish (const char* args[], bool error, process&, const string&); + run_finish (const char* args[], + process&, + bool error = true, + const string& = string ()); // Start the process as above and then call the specified function on each // trimmed line of the output until it returns a non-empty object T (tested @@ -203,7 +206,7 @@ namespace build2 // is false and the program exits with the non-zero status, then an empty T // instance is returned). // - // If checksum is not NULL, then feed it the content of each tripped line + // If checksum is not NULL, then feed it the content of each trimmed line // (including those that come after the callback returns non-empty object). // template <typename T, typename F> |