APZelos / blamer.nvim

A git blame plugin for neovim inspired by VS Code's GitLens plugin
MIT License
733 stars 35 forks source link

Suppress error in git repo with no commits #21

Closed dimtion closed 4 years ago

dimtion commented 4 years ago

Hi,

Thank you for this plugin I love it, and use it every day!

This PR suppress fix an annoying error message happening if you are using blamer.nvim in a new git repo with no HEAD. In this case git will return the error: no such ref: HEAD.