Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix commit logic.

  • Loading branch information...
commit 2bb162e610fab4feff509d4473f55fccb4848681 1 parent 50c11c3
@hrsh7th authored
Showing with 2 additions and 4 deletions.
  1. +1 −2  autoload/vcs/git/commit.vim
  2. +1 −2  autoload/vcs/svn/commit.vim
View
3  autoload/vcs/git/commit.vim
@@ -12,7 +12,7 @@ function! vcs#git#commit#do(args)
endif
let s:files = type(a:args) == type([]) ? a:args : [a:args]
- call vcs#system(['git', 'commit', '--include', join(vcs#escape(s:files), ' ')], 1)
+ call vcs#system(['git', 'commit', join(vcs#escape(s:files), ' ')], 1)
call vcs#execute(['tabedit', '.git/COMMIT_EDITMSG'])
call vcs#execute(['set', 'filetype=gitcommit'])
@@ -35,7 +35,6 @@ function! s:commit()
let lines = vcs#system([
\ 'git',
\ 'commit',
- \ '--include',
\ '-F',
\ '.git/COMMIT_EDITMSG',
\ join(vcs#escape(s:files), ' ')
View
3  autoload/vcs/svn/commit.vim
@@ -17,8 +17,7 @@ function! vcs#svn#commit#do(args)
augroup VimUniteVcsSvnCommit
autocmd!
- autocmd! BufWinEnter <buffer> setlocal bufhidden=delete nobuflisted noswapfile
- autocmd! BufWritePre <buffer> g/^#\|^\s*$/d
+ autocmd! BufWinEnter <buffer> setlocal bufhidden=wipe nobuflisted noswapfile
autocmd! BufWinLeave <buffer> call s:commit()
augroup END
endfunction
Please sign in to comment.
Something went wrong with that request. Please try again.