#include#include using namespace ctgit; int main() { GitPath path = GitPath::create("repo", "src", "example.cpp"); std::cout << path.getString() << std::endl; return 0; }
#includeThe `join` method is demonstrated in this example. The `GitPath` object `basePath` represents the base path, while `subPath` represents the sub-path. The `join` method combines these two paths into a single path and returns a new `GitPath` object. CTGitPath is a part of the CTK library.#include using namespace ctgit; int main() { GitPath basePath = GitPath::create("repo", "src"); GitPath subPath = GitPath::create("example.cpp"); GitPath fullPath = basePath.join(subPath); std::cout << fullPath.getString() << std::endl; return 0; }