refactor(git): rework module around clearer Status and Repo split
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ local M = {}
|
||||
---@param opts { amend: boolean? }?
|
||||
function M.commit(opts)
|
||||
local amend = opts and opts.amend or false
|
||||
local r = repo.find()
|
||||
local r = repo.resolve()
|
||||
if not r then
|
||||
util.warning("not in a git repository")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user