| author | Pat Thoyts <patthoyts@users.sourceforge.net> | |
| Thu, 7 Oct 2010 21:28:45 +0000 (22:28 +0100) | ||
| committer | Pat Thoyts <patthoyts@users.sourceforge.net> | |
| Thu, 7 Oct 2010 21:28:45 +0000 (22:28 +0100) | ||
| commit | 67112c484b5d460ccceb54f3a32b62e4e6e705f0 | |
| tree | 03816549c1324908c776edcab8bfb3ba984b2650 | tree | snapshot |
| parent | c0d2c38d78fc3b55b7f0a2470ca89bed43eb4019 | commit | diff |
git-gui: generic version trimming
Rather than attempting to trim off all the non-version number suffixes
from the 'git version' result, let us scan along from the beginning until
we find a non-numeric part and stop there. Any such dot-version number will
be compatible with the Tcl package version comparison command which is the
aim of this code.
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Rather than attempting to trim off all the non-version number suffixes
from the 'git version' result, let us scan along from the beginning until
we find a non-numeric part and stop there. Any such dot-version number will
be compatible with the Tcl package version comparison command which is the
aim of this code.
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
| git-gui.sh | diff | blob | history |