add support for fossil
This commit is contained in:
parent
72393c1ee6
commit
eaf722e5bf
@ -10,7 +10,7 @@ It's __fast__, __highly configurable__ and __well documented__.
|
|||||||
|
|
||||||
Features:
|
Features:
|
||||||
|
|
||||||
- supports git, mercurial, darcs, bazaar, subversion, cvs, rcs
|
- supports git, mercurial, darcs, bazaar, subversion, cvs, rcs, fossil
|
||||||
- quick jumping between changed lines
|
- quick jumping between changed lines
|
||||||
- apart from signs there is also optional line highlighting
|
- apart from signs there is also optional line highlighting
|
||||||
- fully configurable through global variables (options and mappings)
|
- fully configurable through global variables (options and mappings)
|
||||||
@ -97,6 +97,7 @@ Current the following VCS are supported:
|
|||||||
- subversion (svn)
|
- subversion (svn)
|
||||||
- cvs
|
- cvs
|
||||||
- rcs
|
- rcs
|
||||||
|
- fossil
|
||||||
|
|
||||||
#### quick jumping between changed lines
|
#### quick jumping between changed lines
|
||||||
|
|
||||||
|
@ -53,6 +53,7 @@ version control system:
|
|||||||
- subversion
|
- subversion
|
||||||
- cvs
|
- cvs
|
||||||
- rcs
|
- rcs
|
||||||
|
- fossil
|
||||||
|
|
||||||
The plugin defines 4 new kinds of signs and their corresponding highlighting
|
The plugin defines 4 new kinds of signs and their corresponding highlighting
|
||||||
groups. It tries to inherent existing colors from the SignColumn group, if
|
groups. It tries to inherent existing colors from the SignColumn group, if
|
||||||
@ -96,7 +97,7 @@ not defaults.
|
|||||||
|
|
||||||
let g:signify_vcs_list = [ 'git', 'hg' ]
|
let g:signify_vcs_list = [ 'git', 'hg' ]
|
||||||
|
|
||||||
Default: ['git', 'hg', 'svn', 'darcs', 'bzr', 'cvs', 'rcs']
|
Default: ['git', 'hg', 'svn', 'darcs', 'bzr', 'fossil', 'cvs', 'rcs']
|
||||||
|
|
||||||
This variable determines the VCS to check for and in what order. If you only
|
This variable determines the VCS to check for and in what order. If you only
|
||||||
use git and mercurial, you can shorten the list to the shown example. If you
|
use git and mercurial, you can shorten the list to the shown example. If you
|
||||||
|
@ -14,7 +14,7 @@ let s:other_signs_line_numbers = {}
|
|||||||
|
|
||||||
" overwrite non-signify signs by default
|
" overwrite non-signify signs by default
|
||||||
let s:sign_overwrite = get(g:, 'signify_sign_overwrite', 1)
|
let s:sign_overwrite = get(g:, 'signify_sign_overwrite', 1)
|
||||||
let s:vcs_list = get(g:, 'signify_vcs_list', [ 'git', 'hg', 'svn', 'darcs', 'bzr', 'cvs', 'rcs' ])
|
let s:vcs_list = get(g:, 'signify_vcs_list', [ 'git', 'hg', 'svn', 'darcs', 'bzr', 'fossil', 'cvs', 'rcs' ])
|
||||||
|
|
||||||
let s:id_start = 0x100
|
let s:id_start = 0x100
|
||||||
let s:id_top = s:id_start
|
let s:id_top = s:id_start
|
||||||
@ -292,6 +292,14 @@ function! s:repo_get_diff_darcs(path) abort
|
|||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
" Function: s:repo_get_diff_fossil {{{1
|
||||||
|
function! s:repo_get_diff_fossil(path) abort
|
||||||
|
if executable('fossil')
|
||||||
|
let diff = system('cd '. s:escape(fnamemodify(a:path, ':h')) .' && fossil set diff-command "'. s:difftool .' -U 0" && fossil diff --unified -c 0 -- '. s:escape(a:path))
|
||||||
|
return v:shell_error ? '' : diff
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
" Function: s:repo_get_diff_cvs {{{1
|
" Function: s:repo_get_diff_cvs {{{1
|
||||||
function! s:repo_get_diff_cvs(path) abort
|
function! s:repo_get_diff_cvs(path) abort
|
||||||
if executable('cvs')
|
if executable('cvs')
|
||||||
|
Loading…
Reference in New Issue
Block a user