sublime-text-git icon indicating copy to clipboard operation
sublime-text-git copied to clipboard

GotoDiff improvement when no opened working folder

Open watergear opened this issue 9 years ago • 1 comments

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:

  • Run Git: Diff All Files. Then a new Diff window is generated

image

  • Run Git: Add All and Git: Commit. Then a new Add Commit window is generated

image

  • RunGit: Log All and pick any one in list. Then a new Commit details window is generated

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.

watergear avatar Sep 23 '16 04:09 watergear

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.

vanrijn avatar Jun 21 '17 20:06 vanrijn