Skip to content

Use repo relevant to active file for diffs when opening diff view#16

Open
lumnn wants to merge 1 commit intopredragnikolic:masterfrom
lumnn:feature-relative-repos
Open

Use repo relevant to active file for diffs when opening diff view#16
lumnn wants to merge 1 commit intopredragnikolic:masterfrom
lumnn:feature-relative-repos

Conversation

@lumnn
Copy link
Copy Markdown
Contributor

@lumnn lumnn commented Mar 18, 2026

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

@predragnikolic
Copy link
Copy Markdown
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.

@predragnikolic
Copy link
Copy Markdown
Owner

(And I know the PR is just a couple of lines)

@lumnn
Copy link
Copy Markdown
Contributor Author

lumnn commented Apr 14, 2026

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

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.

2 participants