{"thread":{"id":"17632","subject":"[PATCH (GIT-GUI)] git-gui: Support more git version notations.","startedAt":"2009-02-07T16:43:57Z","lastAt":"2009-02-07T16:43:57Z","messageCount":1,"participants":["Alexander Gavrilov"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"103635","messageId":"200902071943.58106.angavrilov@gmail.com","threadId":"17632","inReplyTo":null,"subject":"[PATCH (GIT-GUI)] git-gui: Support more git version notations.","fromName":"Alexander Gavrilov","fromEmail":"angavrilov@gmail.com","sentAt":"2009-02-07T16:43:57Z","receivedAt":"2009-02-07T16:43:57Z","isPatch":true,"sender":{"key":"angavrilov@gmail.com","avatar":"https://avatars.githubusercontent.com/u/42666?v=4"},"body":"Recently the msysgit repository has got a '1.6.1-msysgit1'\ntag, which, when used to build the git version, is not\nhandled gracefully by the git-gui version code.\n\nThis patch changes the regular expressions to fix it, and\nremoves the hardcoded 'rc' string. Now git-gui can accept\na version tail like '.foo123.GIT.bar.456.7.g89ab'\n\nSigned-off-by: Alexander Gavrilov <angavrilov@gmail.com>\n---\n git-gui.sh |    4 ++--\n 1 files changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/git-gui.sh b/git-gui.sh\nindex e018e07..2f1f305 100755\n--- a/git-gui.sh\n+++ b/git-gui.sh\n@@ -769,9 +769,9 @@ if {![regsub {^git version } $_git_version {} _git_version]} {\n set _real_git_version $_git_version\n regsub -- {[\\-\\.]dirty$} $_git_version {} _git_version\n regsub {\\.[0-9]+\\.g[0-9a-f]+$} $_git_version {} _git_version\n-regsub {\\.rc[0-9]+$} $_git_version {} _git_version\n+regsub {\\.[a-zA-Z]+\\.?[0-9]+$} $_git_version {} _git_version\n regsub {\\.GIT$} $_git_version {} _git_version\n-regsub {\\.[a-zA-Z]+\\.[0-9]+$} $_git_version {} _git_version\n+regsub {\\.[a-zA-Z]+\\.?[0-9]+$} $_git_version {} _git_version\n \n if {![regexp {^[1-9]+(\\.[0-9]+)+$} $_git_version]} {\n \tcatch {wm withdraw .}\n-- \n1.6.1.2.35.g919ab\n"}]}