kemayo / sublime-text-git

Plugin for some git integration into sublime text
MIT License
2.83k stars 391 forks source link

GotoDiff improvement when no opened working folder #491

Open watergear opened 8 years ago

watergear commented 8 years ago

Start Sublime Text with empty project. Open a file from any Git repository folder, but don't add that folder to project. Make some changes in file. Try:

image

image

image


Put the cursor on diff lines (start from -/+) and press Enter key. image

A input text box pop up image

It is unneccessary to ask for repo directory and should directly goto the repo directory of original file which generating such Diff or Commit windows.

vanrijn commented 7 years ago

I'm having the problem where I use sublime-text-git to do a "git diff master" for instance and open a new view, and then when I press Enter in a hunk to go to the file for that hunk, sublime-text-git has forgotten where the git repository root is and asks for it over and over again, for every file in the diff.