gornostal / Modific

Highlight lines changed since the last commit (supports Git, SVN, Bazaar, Mercurial and TFS) / ST2(3) plugin
614 stars 44 forks source link

Verbose console log on non-version controlled files #56

Closed leesei closed 10 years ago

leesei commented 10 years ago

I see (from status line) it is trying to invoke

git diff --no-color --no-ext-diff -- Note.md

which is not version controlled.

Then this will show up in the log (Ctrl+</kbd>) usage: git diff [--no-index] `

Can this be hidden?

gornostal commented 10 years ago

Ideally, Modific should check if a file is not in the .gitignore before doing git diff. I'll try to fix this, but can't tell when it will be fixed.

leesei commented 10 years ago

I don't have a git repo in this case. But what you identified is indeed another use case.

On Fri, Dec 20, 2013 at 11:01 PM, Aleksandr Gornostal < notifications@github.com> wrote:

Ideally, Modific should check if a file is not in the .gitignore before doing git diff. I'll try to fix this, but can't tell when it will be fixed.

— Reply to this email directly or view it on GitHubhttps://github.com/gornostal/Modific/issues/56#issuecomment-31014996 .

gornostal commented 10 years ago

How Modific works is it tries to find .git folder near your file or in directories above. So you should have it somewhere, otherwise it's very odd you get that error.

gornostal commented 10 years ago

So I removed that message from the status bar. Although I couldn't figure out why you see it in console as well.

leesei commented 10 years ago

Thanks for the update.