Doc: remark about sy#util#shell_redirect()

This commit is contained in:
Marco Hinz 2015-07-29 01:49:11 +02:00
parent 10ec6c1a40
commit 71ea7a6e83

View File

@ -159,11 +159,14 @@ Modifiers:~
%d |g:signify_difftool| %d |g:signify_difftool|
%n Unix: "/dev/null", Windows: "NUL" %n Unix: "/dev/null", Windows: "NUL"
NOTE: The output format mustn't change, otherwise Sy won't give any reasonable Redirection: Instead of ">foo" use "sy#util#shell_redirect('foo')". This
helper function takes |'shellredir'| into account.
The output format mustn't change, otherwise Sy won't give any reasonable
results. It's probably wise to start with the respective default values. results. It's probably wise to start with the respective default values.
NOTE: If your VCS program is not in $PATH and you have to specify an absolute If your VCS program is not in $PATH and you have to specify an absolute path,
path, escape spaces by quoting, e.g.: escape spaces by quoting, e.g.:
> >
let g:signify_vcs_cmds = { let g:signify_vcs_cmds = {
\ 'git': '"C:\Program Files (x86)\Git\bin\git.exe" diff --no-color --no-ext-diff -U0 -- %f' \ 'git': '"C:\Program Files (x86)\Git\bin\git.exe" diff --no-color --no-ext-diff -U0 -- %f'
@ -181,7 +184,7 @@ Default:
\ 'cvs': 'cvs diff -U0 -- %f', \ 'cvs': 'cvs diff -U0 -- %f',
\ 'rcs': 'rcsdiff -U0 %f 2>%n', \ 'rcs': 'rcsdiff -U0 %f 2>%n',
\ 'accurev': 'accurev diff %f -- -U0', \ 'accurev': 'accurev diff %f -- -U0',
\ 'perforce': 'p4 info >%n 2>&1 && env P4DIFF=%d p4 diff -dU0 %f', \ 'perforce': 'p4 info '. sy#util#shell_redirect('%n') .' && env P4DIFF=%d p4 diff -dU0 %f'
\ } \ }
< <
------------------------------------------------------------------------------ ------------------------------------------------------------------------------