Skip to content

Commit cfb8b3a

Browse files
committed
feat(git_status): update title of commit and push results window
1 parent bceeb0e commit cfb8b3a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lua/neo-tree/sources/git_status/commands.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,14 @@ M.git_commit = function (state, and_push)
3838
inputs.input("Commit message: ", "", function (msg)
3939
msg = msg:gsub('"', "'")
4040
local cmd = "git commit -m \"" .. msg .. "\""
41+
local title = "git commit"
4142
if and_push then
4243
cmd = cmd .. " && git push"
44+
title = "git commit && git push"
4345
end
4446
local result = vim.fn.systemlist(cmd)
4547
gs.refresh()
46-
popups.alert("Commit Results", result)
48+
popups.alert(title, result)
4749
end, popup_options)
4850
end
4951

@@ -56,7 +58,7 @@ M.git_push = function (state)
5658
if yes then
5759
local result = vim.fn.systemlist("git push")
5860
gs.refresh()
59-
popups.alert("Git Push", result)
61+
popups.alert("git push", result)
6062
end
6163
end)
6264
end

0 commit comments

Comments
 (0)