gitredir

Section: User Commands (1)
Updated: January 1995
Index Return to Main Contents
 

NAME

gitredir - GNU Interactive Tools version 4.3.6 - redirection script  

SYNTAX

gitredir program arguments ...

 

DESCRIPTION

gitredir is a very small script that fools the git program, makeing it believe that the command started wrote something to standard error. It was not designed to be used as a stand alone program.

gitredir is useful for programs like du. We are interested in du's output and we would like to write to the status line its output (especially the output of the 'du -s' command). Normally, this is not possible because 'du -s' will display the information on the standard output ( git catches only standard error) and will exit with the exit code 0. git will display the standard error contents on the status bar only if the program exit status is not 0.

So, gitredir starts a program, sends its standard output through a pipe to a subshell which read from the pipe and write to standard error. After that, gitredir exits with the exit code 1. This way, git thinks that an error occured and display the standard error redirection file to the status bar. Stupid, but useful.

 

BUGS

These manual page is obsolete. It documents version 4.3.5 of the GNU Interactive Tools package. Only the GIT's info documentation is being updated.

Please send bug reports to:
tudorh@pub.ro

 

SEE ALSO

git(1) gitps(1) gitview(1) gitcmp(1) gitkeys(1) gitaction(1) gitmount(1) gitrgrep(1)

 

FILES

/usr/local/bin/gitredir
/usr/local/man/man1/gitredir.1

 

AUTHORS

Tudor Hulubei
- tudorh@pub.ro
Andrei Pitis
- pink@pub.ro
Politehnica University of Bucharest
Romania


 

Index

NAME
SYNTAX
DESCRIPTION
BUGS
SEE ALSO
FILES
AUTHORS

This document was created by man2html, using the manual pages.
Time: 14:04:35 GMT, November 05, 2024