From df1ef68cd8e8582724ce1192bfc202e0b9aeaf0c Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 28 Sep 2021 19:24:31 +0300 Subject: Get rid of C++ modules related code and rename *.mxx files to *.hxx --- libbutl/git.hxx | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 libbutl/git.hxx (limited to 'libbutl/git.hxx') diff --git a/libbutl/git.hxx b/libbutl/git.hxx new file mode 100644 index 0000000..add721e --- /dev/null +++ b/libbutl/git.hxx @@ -0,0 +1,27 @@ +// 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&); +} -- cgit v1.1