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

Make git_status diff works with stagged files #2421

Merged
merged 1 commit into from
Mar 21, 2023
Merged

Make git_status diff works with stagged files #2421

merged 1 commit into from
Mar 21, 2023

Conversation

zoriya
Copy link
Contributor

@zoriya zoriya commented Mar 14, 2023

Description

I use git_status quite often and by default, if changes are staged they are not displayed on the preview. If all changes are staged, the preview is simply blank.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Change an existing file and stage it, run :Telescope git_status and see the diff (blank before, with the file after).

Checklist:

  • My code follows the style guidelines of this project (stylua)
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (lua annotations)

@tjdevries
Copy link
Member

Thanks, that's a good call! I like this change.

@tjdevries tjdevries merged commit eba418c into nvim-telescope:master Mar 21, 2023
Conni2461 pushed a commit that referenced this pull request Apr 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants