summaryrefslogtreecommitdiff
path: root/GIT-VERSION-GEN
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-06-22 05:10:12 (GMT)
committerShawn O. Pearce <spearce@spearce.org>2007-06-22 05:10:12 (GMT)
commit4e817d1ac4f10916343a2610a55f5af8bc949f65 (patch)
tree9c90b224621a5b744f539b598ead84070cc9558d /GIT-VERSION-GEN
parentfb626dc00044c106652ae39300b4cb613af70ab1 (diff)
downloadgit-4e817d1ac4f10916343a2610a55f5af8bc949f65.zip
git-4e817d1ac4f10916343a2610a55f5af8bc949f65.tar.gz
git-4e817d1ac4f10916343a2610a55f5af8bc949f65.tar.bz2
git-gui: Don't require $DISPLAY just to get --version
Junio asked that we don't force the user to have a valid X11 server configured in $DISPLAY just to obtain the output of `git gui version`. This makes sense, the user may be an automated tool that is running without an X server available to it, such as a build script or other sort of package management system. Or it might just be a user working in a non-GUI environment and wondering "what version of git-gui do I have installed?". Tcl has a lot of warts, but one of its better ones is that a comment can be continued to the next line by escaping the LF that would have ended the comment using a backslash-LF sequence. In the past we have used this trick to escape away the 'exec wish' that is actually a Bourne shell script and keep Tcl from executing it. I'm using that feature here to comment out the Bourne shell script and hide it from the Tcl engine. Except now our Bourne shell script is a few lines long and checks to see if it should print the version, or not. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'GIT-VERSION-GEN')
0 files changed, 0 insertions, 0 deletions