Fixed formatting
This commit is contained in:
@@ -197,7 +197,8 @@ inja::json generator<C, D>::element_context(const E &e) const
|
||||
if (file.is_absolute() && ctx.template contains("git"))
|
||||
#endif
|
||||
relative_path =
|
||||
std::filesystem::relative(file, ctx["git"]["toplevel"]).string();
|
||||
std::filesystem::relative(file, ctx["git"]["toplevel"])
|
||||
.string();
|
||||
|
||||
ctx["element"]["source"]["path"] = relative_path;
|
||||
ctx["element"]["source"]["full_path"] = file.string();
|
||||
|
||||
@@ -599,7 +599,8 @@ template <> struct convert<sequence_diagram> {
|
||||
|
||||
// Ensure relative_to has a value
|
||||
if (!rhs.relative_to.has_value)
|
||||
rhs.relative_to.set(std::filesystem::current_path().lexically_normal());
|
||||
rhs.relative_to.set(
|
||||
std::filesystem::current_path().lexically_normal());
|
||||
|
||||
rhs.initialize_type_aliases();
|
||||
|
||||
|
||||
@@ -101,8 +101,7 @@ bool is_git_repository()
|
||||
return true;
|
||||
|
||||
return contains(
|
||||
trim(get_process_output("git rev-parse --git-dir")),
|
||||
".git");
|
||||
trim(get_process_output("git rev-parse --git-dir")), ".git");
|
||||
}
|
||||
|
||||
std::string get_git_branch()
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#include <array>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace clanguml {
|
||||
namespace t30002 {
|
||||
|
||||
Reference in New Issue
Block a user