// file : bdep/git.hxx -*- C++ -*- // copyright : Copyright (c) 2014-2018 Code Synthesis Ltd // license : MIT; see accompanying LICENSE file #ifndef BDEP_GIT_HXX #define BDEP_GIT_HXX #include #include #include namespace bdep { using butl::git_repository; template process start_git (I&& in, O&& out, E&& err, A&&... args); template process start_git (const dir_path& repo, I&& in, O&& out, E&& err, A&&... args); void finish_git (process& pr, bool io_read = false); template void run_git (const dir_path& repo, A&&... args); // Return the first line of the git output. If ignore_error is true, then // suppress stderr, ignore (normal) error exit status, and return nullopt. // template optional git_line (bool ignore_error, A&&... args); template optional git_line (const dir_path& repo, bool ignore_error, A&&... args); // Similar to the above but takes the already started git process with a // redirected output pipe. // optional git_line (process&& pr, fdpipe&& pipe, bool ignore_error); } #include #include #endif // BDEP_GIT_HXX