mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-27 19:28:59 +02:00
## What is this PR for? - The current implementation doesn't support multi-module/monorepo project where `<repo>/.git` can be `gitdir` alias to the main `.git` folder. This PR uses the Git CLI to resolve remote URLs to better support flexible project structure. - This PR also adds the support to Bitbucket and GitLab What's the problem of reading `.git/config`? - Not all information available there. For instance, some large projects will split a monorepo into smaller submodules, where `.git` is a file that contains the `gitdir` alias. - There's no promise that `.git/config` has to be existed. Git supports multiple ways to store the git info outside of the default git directory like using `GIT_DIR` env variable. - Have to do lot of reading and parsing logic. Why `git remote -v`? - Only contains remote info with explicit format. - Don't have to filter out other config info. - Don't have to deal with lots of weird edge cases. ## Does this PR fix an existing issue? No. ## Checklist - [x] I've read the [CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md) guidelines. |
||
---|---|---|
.. | ||
cmp.lua | ||
extras.lua | ||
format.lua | ||
init.lua | ||
inject.lua | ||
json.lua | ||
lazygit.lua | ||
lsp.lua | ||
lualine.lua | ||
mini.lua | ||
news.lua | ||
pick.lua | ||
plugin.lua | ||
root.lua | ||
terminal.lua | ||
toggle.lua | ||
ui.lua |