-
-
Notifications
You must be signed in to change notification settings - Fork 828
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
feat(git): support detached working trees #2597
Conversation
dc27fc6
to
7c21edc
Compare
skip-checks: true
@Subjective can you test this branch? |
@jamestrew It works great now, thanks! |
Okay, one issue I noticed is that an error occurs if you open a file belonging to one of the detached working trees when Vim's cwd is set to another git repo and Edit: Wait actually, it seems like |
Ahh thanks for catching that. Having dug deeper, I'm not sure |
Everything seems to be working fine now, thanks! |
* Filter bcommits by selection in visual mode * Split bcommits_range into new picker * Add option to run bcommits_range as operator Starts operator-pending mode and shows commits in the range of lines covered by the next text object or motion * Rename range arguments to "first" and "last" Can't use start/end, since end is an annoying keyword to use in lua and start/stop doesn't fit as well * Move operators functionality to new module * Run bcommits if no range given to bcommits_range * Make bcommits_range default to current line Instead of calling bcommits * Improve documentation of telescope.operators * Add default value for last_operator Default to a no-op callback * Update bcommits_range for detached worktrees See #2597 * Rename range arguments to "from" and "to" * Move shared bcommits picker into single function
closes #2595
Description
Adds support for detached working tree for git related pickers.
Closely follows the pattern utilized by gitsigns.nvim in lewis6991/gitsigns.nvim#600
eg use case:
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list relevant details about your configuration
Tested the following pickers with detached/attached working trees and git worktrees.