diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2021-09-28 19:24:31 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2021-09-28 20:29:59 +0300 |
commit | df1ef68cd8e8582724ce1192bfc202e0b9aeaf0c (patch) | |
tree | b731ca4c68e60c00c7e7d499dbf4868ee7b71f44 /libbutl/git.mxx | |
parent | 7a4fc37f264cdb67f2f83fa92703c869215bbc86 (diff) |
Get rid of C++ modules related code and rename *.mxx files to *.hxx
Diffstat (limited to 'libbutl/git.mxx')
-rw-r--r-- | libbutl/git.mxx | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/libbutl/git.mxx b/libbutl/git.mxx deleted file mode 100644 index 3f003be..0000000 --- a/libbutl/git.mxx +++ /dev/null @@ -1,45 +0,0 @@ -// file : libbutl/git.mxx -*- C++ -*- -// license : MIT; see accompanying LICENSE file - -#ifndef __cpp_modules_ts -#pragma once -#endif - -// C includes. - -#ifndef __cpp_lib_modules_ts -#include <string> -#endif - -// Other includes. - -#ifdef __cpp_modules_ts -export module butl.git; -#ifdef __cpp_lib_modules_ts -import std.core; -#endif -import butl.path; -import butl.optional; -import butl.semantic_version; -#else -#include <libbutl/path.mxx> -#include <libbutl/optional.mxx> -#include <libbutl/semantic-version.mxx> -#endif - -#include <libbutl/export.hxx> - -LIBBUTL_MODEXPORT 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<semantic_version> - git_version (const std::string&); -} |