Comments (3)
FYI. If my project contains a .git-blame-ignore-revs
file then I see the error outlined above, if I remove the file and relaunch Neovim everything works as expected.
from gitsigns.nvim.
Ahh thank you for that. Looks like the --ignore-revs-file
option is in the wrong place. I think this patch would fix it, but would need to figure out how to get my neovim to point at the custom version of this plugin to actually test it. If no one else submits a PR first I'll try to find some time to figure that out when i get the chance.
❯ git --no-pager diff
diff --git a/lua/gitsigns/git.lua b/lua/gitsigns/git.lua
index ce50b0f..2101043 100644
--- a/lua/gitsigns/git.lua
+++ b/lua/gitsigns/git.lua
@@ -591,14 +591,15 @@ function Obj:run_blame(lines, lnum, opts)
end
args[#args + 1] = opts.rev
- args[#args + 1] = '--'
- args[#args + 1] = self.file
local ignore_file = self.repo.toplevel .. '/.git-blame-ignore-revs'
if uv.fs_stat(ignore_file) then
vim.list_extend(args, { '--ignore-revs-file', ignore_file })
end
+ args[#args + 1] = '--'
+ args[#args + 1] = self.file
+
local results, stderr = self:command(args, { stdin = lines, ignore_error = true })
if stderr then
error_once('Error running git-blame: ' .. stderr)
from gitsigns.nvim.
but would need to figure out how to get my neovim to point at the custom version of this plugin to actually test it
@tkinz27 one of the ways if to fork this repo, make a change in your fork and point the package manager to your forked repo.
@kevinmcgill indeed this looks like a root cause for this
from gitsigns.nvim.
Related Issues (20)
- [Enhencement] Option to open preview in split like vim-gitgutter HOT 1
- Errors when removing certain modules from `require()` cache HOT 5
- How to make git signs appear after line numbers
- Problem with colour of signs HOT 2
- Remove the vimfn sign backend with Nvim 0.10
- Feature request: get commit hash for the current line HOT 1
- Error when switching between index and worktree version of file (using vim-fugitive) HOT 6
- Error when deleting a buffer before `blame_line` loads
- Having problems with `gitsigns` and `nvim-colorizer` HOT 2
- Gitsigns fails to run `git --version` HOT 8
- `gitsigns_head` shows `nil` instead of revision
- Feature Request: Allow changing blame base. HOT 1
- gitsign cannot attach if nvim starts from "run" window HOT 2
- Attempt to index a nil value after executing "GDelete" HOT 2
- Syntax highlighting fails after opening linehl HOT 1
- Configuring git blame HOT 2
- Error after update – gitsigns: Ignoring invalid configuration field 'on_attach_pre' HOT 8
- Git current line blame overlap with text when split windows HOT 1
- error in executing `:Gitsigns preview_hunk_inline ` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitsigns.nvim.