Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different git dir for git builtins #3429

Open
MartyMcFlyInTheSky opened this issue Mar 14, 2025 · 0 comments
Open

Different git dir for git builtins #3429

MartyMcFlyInTheSky opened this issue Mar 14, 2025 · 0 comments
Labels
enhancement Enhancement to performance, inner workings or existent features

Comments

@MartyMcFlyInTheSky
Copy link

MartyMcFlyInTheSky commented Mar 14, 2025

Is your feature request related to a problem? Please describe.
I'm using .myconfig in /home/myuser to manage my dotfiles. The problem is the telescope git builtins (e.g. require("telescope.builtin").git_bcommits() won't find this git directory by itself. So I can't use the full telescope git featureset to manage my dotfiles with my setup and that's a pitty.

Describe the solution you'd like
Gitsign lets the user define a git dir fallback like this:

        worktrees = {
            {
                toplevel = vim.env.HOME,
                gitdir = vim.env.HOME .. '/.myconfig'
            }
        }

I think the way it works is if no git dir is found in the current project, it will try these fallbacks. Would be nice to have something like this for telescope! Could be a picker opt, but I'd prefer if it was a default option though that I only have to specify once.

Describe alternatives you've considered
Renaming my dotfiles git directory, but the setup has proven very effective otherwise and I wouldn't want to be forced to do this honestly.

Additional context

@MartyMcFlyInTheSky MartyMcFlyInTheSky added the enhancement Enhancement to performance, inner workings or existent features label Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to performance, inner workings or existent features
Projects
None yet
Development

No branches or pull requests

1 participant