16 #ifndef GIT_TRACKER_H_
17 #define GIT_TRACKER_H_
28 GitTracker() { ConstructFolderNames(); };
29 explicit GitTracker(
const std::string& simulation_output) : GitTracker() {
30 simulation_output_ = GetAbsolutePath(simulation_output);
32 ~GitTracker() =
default;
37 void SaveGitDetails();
42 void SaveGitInfo(
const std::string& file,
43 const std::string& repository_path)
const;
48 void PrintGitInfo(
const std::string& repository_path,
49 std::ostream& out = std::cout)
const;
54 void SaveGitDiff(
const std::string& file,
55 const std::string& repository_path)
const;
58 void SetBdmInstallation(
const std::string& path) {
59 bdm_installation_ = GetAbsolutePath(path);
63 void SetSimulationOutput(
const std::string& path) {
64 simulation_output_ = GetAbsolutePath(path);
69 void SetCwd(
const std::string& path) { cwd_ = GetAbsolutePath(path); }
73 std::string GetAbsolutePath(
const std::string& path)
const;
76 void ConstructFolderNames();
79 std::string bdm_installation_ =
"";
81 std::string simulation_output_ =
"";
83 std::string cwd_ =
"";
88 #endif // GIT_TRACKER_H_