author | Pat Thoyts <patthoyts@users.sourceforge.net> | |
Fri, 9 Dec 2011 15:14:32 +0000 (15:14 +0000) | ||
committer | Pat Thoyts <patthoyts@users.sourceforge.net> | |
Fri, 9 Dec 2011 15:14:32 +0000 (15:14 +0000) | ||
commit | 7d076d56757c238aa1b90534cd0d2450528b3580 | |
tree | 416957a5a46a6ff8a5acfe38989ed42a19e55aa9 | tree | snapshot |
parent | 215d4fdbaa9d32459cc199667970dc7f63d94982 | commit | diff |
git-gui: handle shell script text filters when loading for blame.
When loading a file into the blame window git-gui does all the work and
must handle the text conversion filters if defined. On Windows it is
necessary to detect the need for a shell script explicitly.
Such filter commands are run using non-blocking I/O but this has the
unfortunate side effect of losing any error that might be reported when
the pipe is closed. Switching to blocking mode just before closing
enables reporting of errors in the filter scripts to the user.
Tested-by: Sebastian Schuberth <sschuberth@gmail.com>
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
When loading a file into the blame window git-gui does all the work and
must handle the text conversion filters if defined. On Windows it is
necessary to detect the need for a shell script explicitly.
Such filter commands are run using non-blocking I/O but this has the
unfortunate side effect of losing any error that might be reported when
the pipe is closed. Switching to blocking mode just before closing
enables reporting of errors in the filter scripts to the user.
Tested-by: Sebastian Schuberth <sschuberth@gmail.com>
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
git-gui.sh | diff | blob | history | |
lib/blame.tcl | diff | blob | history |