Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Moritz Sokoll
vim-git-control
Commits
5380c0ed
Commit
5380c0ed
authored
May 24, 2021
by
Moritz Sokoll
🦀
Browse files
ye
parent
4ca83535
Changes
1
Hide whitespace changes
Inline
Side-by-side
git-control.vim
View file @
5380c0ed
...
...
@@ -8,12 +8,13 @@ endif
function
!
Git_Commit
()
let
commit_message
=
input
(
'commit message: '
)
if
len
(
commit_message
)
>
1
echo
err
'message must be at least one character long'
if
len
(
commit_message
)
<
1
echo
len
(
commit_message
)
else
let
stat
=
system
(
"git commit -am '"
.
commit_message
.
"'"
)
echo stat
endif
endfunction
command GitCommit
call
Git_Commit
()
let
g:git_control_loaded
=
1
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment