From 71ea7a6e83ba7f6e5486cc3e6f6a554d894d2577 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Wed, 29 Jul 2015 01:49:11 +0200 Subject: [PATCH] Doc: remark about sy#util#shell_redirect() --- doc/signify.txt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/doc/signify.txt b/doc/signify.txt index 77baa87..95a4633 100644 --- a/doc/signify.txt +++ b/doc/signify.txt @@ -159,11 +159,14 @@ Modifiers:~ %d |g:signify_difftool| %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. -NOTE: If your VCS program is not in $PATH and you have to specify an absolute -path, escape spaces by quoting, e.g.: +If your VCS program is not in $PATH and you have to specify an absolute path, +escape spaces by quoting, e.g.: > let g:signify_vcs_cmds = { \ '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', \ 'rcs': 'rcsdiff -U0 %f 2>%n', \ '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' \ } < ------------------------------------------------------------------------------