diff --git a/.clocignore b/.clocignore new file mode 100644 index 0000000..54aa02d --- /dev/null +++ b/.clocignore @@ -0,0 +1,8 @@ +third_party +build +__dump +traces +.vscode +.claude +.git +imgui.ini diff --git a/.gitmodules b/.gitmodules index c4d9b71..8b6e843 100644 --- a/.gitmodules +++ b/.gitmodules @@ -14,3 +14,6 @@ [submodule "third_party/ImGuizmo"] path = third_party/ImGuizmo url = https://github.com/CedricGuillemet/ImGuizmo.git +[submodule "third_party/fmt"] + path = third_party/fmt + url = https://github.com/fmtlib/fmt diff --git a/bin/dev b/bin/dev index b1d1455..74bde17 100755 --- a/bin/dev +++ b/bin/dev @@ -96,6 +96,13 @@ class DevCommand(GiteaCommand, RenderDocCommand, ShadersCommand, TracyCommand): # Custom helpers + ## + # Counts lines of code from the project root, skipping paths listed in + # .clocignore. Any arguments are passed through to cloc. + # dev cloc [args...] + def cloc(self, *args, **kwargs): + self._run_in_root(["cloc", "--exclude-list-file=.clocignore", *args, "."]) + def ownit(self, *args, **kwargs): file_or_directory = args[0] if args else None if file_or_directory is None: diff --git a/third_party/fmt b/third_party/fmt new file mode 160000 index 0000000..4afd0e4 --- /dev/null +++ b/third_party/fmt @@ -0,0 +1 @@ +Subproject commit 4afd0e498e9e1dd68775cc52087df774a19c761f