gitk: work around ridiculous command line restriction on Windows
commit493d27938511cbd8bb5e014d3174368d75686e12
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 11 Aug 2009 00:22:33 +0000 (11 02:22 +0200)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 7 Feb 2010 22:08:30 +0000 (7 23:08 +0100)
tree79dafa779a54206163e6bf2d1d0296a1bd3530db
parent9801345658f3c583a33d304ab63d44ab0a296b7c
gitk: work around ridiculous command line restriction on Windows

On Windows, there are dramatic problems when a command line grows
beyond PATH_MAX, which is restricted to 255 characters.

Work around this by just cutting off the command line at that length
(actually, at a space boundary) in the hope that only negative
refs are chucked: gitk will then do unnecessary work, but that is
still better than flashing the gitk window and exiting with exit
status 5 (which no Windows user is able to make sense of).

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
gitk-git/gitk