Skip to content

Don't just silently fail if git fails #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 7, 2017
Merged

Don't just silently fail if git fails #8

merged 1 commit into from
Jul 7, 2017

Conversation

ndevenish
Copy link
Contributor

I thought the package didn't work, because nothing happened and there was no messages in the console. But it turns out the machine I was working on didn't have a recent version of git. This patch changes the package to echo out the git error to the sublime text console if this happens.

Incidentally, I can't find any documentation for the --minimal argument to git blame. Does it change the output significantly?

This prints a message to the sublime text console, passing on any messages
from git, if the command returns an error code. Previously this just
failed silently, making it look like the plugin just didn't work.
@psykzz
Copy link
Collaborator

psykzz commented Jun 25, 2017

Its actually only defined here -> https://git-scm.com/docs/git-show#git-show---minimal
I used it because i wanted a specific format but really i should do it differently.

I'll merge your PR tomorrow once i get a better look, as right now its a little late for me.

@psykzz psykzz self-assigned this Jun 25, 2017
@ndevenish
Copy link
Contributor Author

Its actually only defined here -> https://git-scm.com/docs/git-show#git-show---minimal
I used it because i wanted a specific format but really i should do it differently.

Thanks! I looked at diff/blame and searched the main man page but obviously missed that one 😃

@psykzz psykzz merged commit f96366a into frou:master Jul 7, 2017
@psykzz
Copy link
Collaborator

psykzz commented Jul 7, 2017

Sorry for being slow in merging, i've merged this now, will cut a release in a moment.

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