diff options
author | Barton E. Schaefer <schaefer@zsh.org> | 2017-02-21 20:45:18 -0800 |
---|---|---|
committer | Barton E. Schaefer <schaefer@zsh.org> | 2017-02-21 20:45:18 -0800 |
commit | 1b0541c52fa20be241a7e601e7650731741d5797 (patch) | |
tree | 8109512d807dbf914eda4b70ab699bdb85f5634e /Functions/VCS_Info/Backends | |
parent | 79005f1b794d9d9a5de7fb22a6f5ca4f2c730382 (diff) | |
download | zsh-1b0541c52fa20be241a7e601e7650731741d5797.tar.gz zsh-1b0541c52fa20be241a7e601e7650731741d5797.tar.xz zsh-1b0541c52fa20be241a7e601e7650731741d5797.zip |
Julien Nicoulaud: 40586: discard stderr
Diffstat (limited to 'Functions/VCS_Info/Backends')
-rw-r--r-- | Functions/VCS_Info/Backends/VCS_INFO_get_data_git | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Functions/VCS_Info/Backends/VCS_INFO_get_data_git b/Functions/VCS_Info/Backends/VCS_INFO_get_data_git index 192b0a10d..f3dd95dcb 100644 --- a/Functions/VCS_Info/Backends/VCS_INFO_get_data_git +++ b/Functions/VCS_Info/Backends/VCS_INFO_get_data_git @@ -156,7 +156,7 @@ if (( querystaged || queryunstaged )) && \ [[ "$(${vcs_comm[cmd]} rev-parse --is-inside-work-tree 2> /dev/null)" == 'true' ]] ; then # Default: off - these are potentially expensive on big repositories if (( queryunstaged )) ; then - ${vcs_comm[cmd]} diff --no-ext-diff --ignore-submodules=dirty --quiet --exit-code || + ${vcs_comm[cmd]} diff --no-ext-diff --ignore-submodules=dirty --quiet --exit-code 2> /dev/null || gitunstaged=1 fi if (( querystaged )) ; then |