// file : libbutl/git.hxx -*- C++ -*- // license : MIT; see accompanying LICENSE file #pragma once #include #include #include #include #include namespace butl { // Return true if the specified directory is a git repository root (contains // the .git filesystem entry). // LIBBUTL_SYMEXPORT bool git_repository (const dir_path&); // Try to parse the line printed by the 'git --version' command. Return git // version if succeed, nullopt otherwise. // LIBBUTL_SYMEXPORT optional git_version (const std::string&); }