summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 906ab7f)
raw | patch | inline | side by side (parent: 906ab7f)
author | Steffen Prohaska <prohaska@zib.de> | |
Sat, 6 Oct 2007 13:27:22 +0000 (15:27 +0200) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Mon, 8 Oct 2007 00:15:27 +0000 (17:15 -0700) |
This commit teaches git-gui to accept versions with annotations
that start with text and optionally end with a dot followed by
a number.
This is needed by the current versioning scheme of msysgit,
which uses versions like 1.5.3.mingw.1. However, the changes
is not limited to this use case. Any version of the form
<numeric version>.<anytext>.<number> would be parsed and only
the starting <numeric version> used for validation.
[sp: Minor edit to remove unnecessary group matching]
Signed-off-by: Steffen Prohaska <prohaska@zib.de>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
that start with text and optionally end with a dot followed by
a number.
This is needed by the current versioning scheme of msysgit,
which uses versions like 1.5.3.mingw.1. However, the changes
is not limited to this use case. Any version of the form
<numeric version>.<anytext>.<number> would be parsed and only
the starting <numeric version> used for validation.
[sp: Minor edit to remove unnecessary group matching]
Signed-off-by: Steffen Prohaska <prohaska@zib.de>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh | patch | blob | history |
diff --git a/git-gui.sh b/git-gui.sh
index cf88a0d8247e8578e5740d290ee1e72b011f2fe2..9335a9761b458f5e8d75abf342630672751c7f2a 100755 (executable)
--- a/git-gui.sh
+++ b/git-gui.sh
regsub {\.[0-9]+\.g[0-9a-f]+$} $_git_version {} _git_version
regsub {\.rc[0-9]+$} $_git_version {} _git_version
regsub {\.GIT$} $_git_version {} _git_version
+regsub {\.[a-zA-Z]+\.[0-9]+$} $_git_version {} _git_version
if {![regexp {^[1-9]+(\.[0-9]+)+$} $_git_version]} {
catch {wm withdraw .}