From 4353c43760f361d60f80455e8447cc55bd22588b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 9 Dec 2017 12:58:04 +0200 Subject: Fix git commit id calculation --- build2/utility.hxx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'build2/utility.hxx') 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 -- cgit v1.1