Giter Site home page Giter Site logo

Comments (3)

kevinmcgill avatar kevinmcgill commented on June 12, 2024 1

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.

tkinz27 avatar tkinz27 commented on June 12, 2024 1

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.

skoch13 avatar skoch13 commented on June 12, 2024 1

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.