Match git commit properly
This commit is contained in:
@@ -205,8 +205,13 @@ function MatchAgainstIncludes(s)
|
||||
end
|
||||
|
||||
function MatchGitCommit(s)
|
||||
local command = "git --no-pager show "..s
|
||||
return {kind = "exec", cmd = command, working_dir = GetCurrentBufferDir()}
|
||||
local i, j = string.find(s, "^commit ")
|
||||
print(tostring(i))
|
||||
if i then
|
||||
local command = "git --no-pager show "..s
|
||||
return {kind = "exec", cmd = command, working_dir = GetCurrentBufferDir()}
|
||||
end
|
||||
return nil
|
||||
end
|
||||
|
||||
Rules = {
|
||||
|
||||
Reference in New Issue
Block a user