# Functions
FindGitRepoRootByTraversal finds the Git repository root for the given directory by manually checking for a .git directory.
FindGitRepoRootUsingGit finds the root of a Git repository using the `git` command.
IsAGitRepository checks if the given directory or any of its parent directories up to `levels` is a Git repository.