Use repo relevant to active file for diffs when opening diff view#16
Open
lumnn wants to merge 1 commit intopredragnikolic:masterfrom
Open
Use repo relevant to active file for diffs when opening diff view#16lumnn wants to merge 1 commit intopredragnikolic:masterfrom
lumnn wants to merge 1 commit intopredragnikolic:masterfrom
Conversation
Owner
|
Hello lumnn, I have not forgotten about this PR. Sorry that I still have not taken any action. I will get back to this when I find time. |
Owner
|
(And I know the PR is just a couple of lines) |
Contributor
Author
|
Not a problem at all take your time. So far using this locally I suspect there may be some refreshing issue for diff view when changes are done externally. I'm not 100% sure whether it's newly introduced issue or whether the fact I'm operating on large repositories recently |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR attempts to change which repository is used for diff view.
At the moment Diff View reads first window folder. This is problematic if sublime project is configured with multiple folders (each having own git repository) or when there are nested folders (for example git worktrees).
This change tries to use repository of currently active file.
I briefly tested it and it seems to be working, but feel free to wait with merging this PR until I use it for some time to evaluate it doesn't cause any problems