* [PATCH] gitk: Handle msysGit version during version comparisons
@ 2009-05-18 21:46 Pat Thoyts
2009-05-18 22:57 ` Paul Mackerras
2009-05-19 8:43 ` Johannes Schindelin
0 siblings, 2 replies; 5+ messages in thread
From: Pat Thoyts @ 2009-05-18 21:46 UTC (permalink / raw)
To: Paul Mackerras; +Cc: git, Johannes Schindelin
msysGit generates version strings with text appended which cannot
be used with vcompare. Limit git_version to the first three digits
which are the real git version.
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
---
gitk | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gitk b/gitk
index 0804e6e..1855390 100755
--- a/gitk
+++ b/gitk
@@ -11152,7 +11152,7 @@ set nullid2 "0000000000000000000000000000000000000001"
set nullfile "/dev/null"
set have_tk85 [expr {[package vcompare $tk_version "8.5"] >= 0}]
-set git_version [lindex [exec git version] end]
+set git_version [join [lrange [split [lindex [exec git version] end] .] 0 2] .]
set runq {}
set history {}
--
1.6.3.msysgit.0
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH] gitk: Handle msysGit version during version comparisons
2009-05-18 21:46 [PATCH] gitk: Handle msysGit version during version comparisons Pat Thoyts
@ 2009-05-18 22:57 ` Paul Mackerras
2009-05-19 8:43 ` Johannes Schindelin
1 sibling, 0 replies; 5+ messages in thread
From: Paul Mackerras @ 2009-05-18 22:57 UTC (permalink / raw)
To: Pat Thoyts; +Cc: git, Johannes Schindelin
Pat Thoyts writes:
> msysGit generates version strings with text appended which cannot
> be used with vcompare. Limit git_version to the first three digits
> which are the real git version.
Thanks, applied.
Paul.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] gitk: Handle msysGit version during version comparisons
2009-05-18 21:46 [PATCH] gitk: Handle msysGit version during version comparisons Pat Thoyts
2009-05-18 22:57 ` Paul Mackerras
@ 2009-05-19 8:43 ` Johannes Schindelin
2009-05-19 8:51 ` Michael J Gruber
1 sibling, 1 reply; 5+ messages in thread
From: Johannes Schindelin @ 2009-05-19 8:43 UTC (permalink / raw)
To: Pat Thoyts; +Cc: Paul Mackerras, git
Hi,
On Mon, 18 May 2009, Pat Thoyts wrote:
>
> msysGit generates version strings with text appended which cannot
> be used with vcompare. Limit git_version to the first three digits
> which are the real git version.
>
> Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Is that indent intentional?
Ciao,
Dscho
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] gitk: Handle msysGit version during version comparisons
2009-05-19 8:43 ` Johannes Schindelin
@ 2009-05-19 8:51 ` Michael J Gruber
2009-05-19 10:38 ` Pat Thoyts
0 siblings, 1 reply; 5+ messages in thread
From: Michael J Gruber @ 2009-05-19 8:51 UTC (permalink / raw)
To: Johannes Schindelin; +Cc: Pat Thoyts, Paul Mackerras, git
Johannes Schindelin venit, vidit, dixit 19.05.2009 10:43:
> Hi,
>
> On Mon, 18 May 2009, Pat Thoyts wrote:
>
>>
>> msysGit generates version strings with text appended which cannot
>> be used with vcompare. Limit git_version to the first three digits
>> which are the real git version.
>>
>> Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
>
> Is that indent intentional?
>
> Ciao,
> Dscho
It is clearly indentional :)
[During my git beginnings, the standard output format of git log made me
believe I should format commit message bodies like that, too.]
Michael
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] gitk: Handle msysGit version during version comparisons
2009-05-19 8:51 ` Michael J Gruber
@ 2009-05-19 10:38 ` Pat Thoyts
0 siblings, 0 replies; 5+ messages in thread
From: Pat Thoyts @ 2009-05-19 10:38 UTC (permalink / raw)
To: Michael J Gruber; +Cc: Johannes Schindelin, git
Michael J Gruber <git@drmicha.warpmail.net> writes:
>Johannes Schindelin venit, vidit, dixit 19.05.2009 10:43:
>> Hi,
>>
>> On Mon, 18 May 2009, Pat Thoyts wrote:
>>
>>>
>>> msysGit generates version strings with text appended which cannot
>>> be used with vcompare. Limit git_version to the first three digits
>>> which are the real git version.
>>>
>>> Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
>>
>> Is that indent intentional?
>>
>> Ciao,
>> Dscho
>
>It is clearly indentional :)
>
>[During my git beginnings, the standard output format of git log made me
>believe I should format commit message bodies like that, too.]
It was intentional and the above followup is why. Evidently I should
not do so in the future.
--
Pat Thoyts http://www.patthoyts.tk/
PGP fingerprint 2C 6E 98 07 2C 59 C8 97 10 CE 11 E6 04 E0 B9 DD
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-05-19 10:38 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-18 21:46 [PATCH] gitk: Handle msysGit version during version comparisons Pat Thoyts
2009-05-18 22:57 ` Paul Mackerras
2009-05-19 8:43 ` Johannes Schindelin
2009-05-19 8:51 ` Michael J Gruber
2009-05-19 10:38 ` Pat Thoyts
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).