diff options
author | HampusM <hampus@hampusmat.com> | 2024-11-10 19:53:01 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-11-10 19:53:01 +0100 |
commit | 4a32ba0d4dbb63fe9332bd2666e429e8d84dbfa1 (patch) | |
tree | 7b8b3c9fb6bd7169b198482b3e268ceebd7b4993 | |
parent | 8d34de9e2ab66d506bc117a9dbfe05ea158d7cd0 (diff) |
remove git utility module
-rw-r--r-- | lua/utility/git.lua | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/lua/utility/git.lua b/lua/utility/git.lua deleted file mode 100644 index b43ccc5..0000000 --- a/lua/utility/git.lua +++ /dev/null @@ -1,29 +0,0 @@ -require("utility.misc") - -function RepositoryRoot() - local current_file = GetCurrentFile() - - if current_file == "fzf" then - return "" - end - - local super_project_path = vim.fn.system("git -C " .. Dirname(current_file) - .. " rev-parse --show-superproject-working-tree") - - if vim.v.shell_error ~= 0 then - return "" - end - - if super_project_path then - return super_project_path - end - - local toplevel_path = vim.fn.system("git -C " .. Dirname(current_file) - .. " rev-parse --show-toplevel | tr -d '\n'") - - if vim.v.shell_error ~= 0 then - return "" - end - - return toplevel_path -end |