git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [gitk PATCH] gitk: Disable log.decorate config
@ 2010-03-19 22:44 Santi Béjar
  2010-03-20  5:10 ` Paul Mackerras
  2010-03-20  5:34 ` Jeff King
  0 siblings, 2 replies; 4+ messages in thread
From: Santi Béjar @ 2010-03-19 22:44 UTC (permalink / raw)
  To: git; +Cc: Paul Mackerras

Since eb73445 (Add `log.decorate' configuration variable., 2010-02-17)
the log output changes if log.decorate is set. Gitk is unable to
understand the new output (it returns the error: "Can't parse git log
output: {commit $sha1 $sha2...}), so disable it with --no-decorate.

Signed-off-by: Santi Béjar <santi@agolina.net>
---
 gitk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gitk b/gitk
index 1f36a3e..aca44b7 100755
--- a/gitk
+++ b/gitk
@@ -362,7 +362,7 @@ proc start_rev_list {view} {
 
     if {[catch {
 	set fd [open [concat | git log --no-color -z --pretty=raw --parents \
-			 --boundary $args "--" $files] r]
+			 --boundary --no-decorate $args "--" $files] r]
     } err]} {
 	error_popup "[mc "Error executing git log:"] $err"
 	return 0
-- 
1.7.0.2.384.g015e

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [gitk PATCH] gitk: Disable log.decorate config
  2010-03-19 22:44 [gitk PATCH] gitk: Disable log.decorate config Santi Béjar
@ 2010-03-20  5:10 ` Paul Mackerras
  2010-03-20 11:39   ` Santi Béjar
  2010-03-20  5:34 ` Jeff King
  1 sibling, 1 reply; 4+ messages in thread
From: Paul Mackerras @ 2010-03-20  5:10 UTC (permalink / raw)
  To: Santi Béjar; +Cc: git

On Fri, Mar 19, 2010 at 11:44:23PM +0100, Santi Béjar wrote:

> Since eb73445 (Add `log.decorate' configuration variable., 2010-02-17)
> the log output changes if log.decorate is set. Gitk is unable to
> understand the new output (it returns the error: "Can't parse git log
> output: {commit $sha1 $sha2...}), so disable it with --no-decorate.
> 
> Signed-off-by: Santi Béjar <santi@agolina.net>
> ---
>  gitk |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/gitk b/gitk
> index 1f36a3e..aca44b7 100755
> --- a/gitk
> +++ b/gitk
> @@ -362,7 +362,7 @@ proc start_rev_list {view} {
>  
>      if {[catch {
>  	set fd [open [concat | git log --no-color -z --pretty=raw --parents \
> -			 --boundary $args "--" $files] r]
> +			 --boundary --no-decorate $args "--" $files] r]

We'll need to make that conditional on the git version, since we want
gitk to continue to work on older git installations.

Paul.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gitk PATCH] gitk: Disable log.decorate config
  2010-03-19 22:44 [gitk PATCH] gitk: Disable log.decorate config Santi Béjar
  2010-03-20  5:10 ` Paul Mackerras
@ 2010-03-20  5:34 ` Jeff King
  1 sibling, 0 replies; 4+ messages in thread
From: Jeff King @ 2010-03-20  5:34 UTC (permalink / raw)
  To: Santi Béjar; +Cc: git, Paul Mackerras

On Fri, Mar 19, 2010 at 11:44:23PM +0100, Santi Béjar wrote:

> Since eb73445 (Add `log.decorate' configuration variable., 2010-02-17)
> the log output changes if log.decorate is set. Gitk is unable to
> understand the new output (it returns the error: "Can't parse git log
> output: {commit $sha1 $sha2...}), so disable it with --no-decorate.

log.decorate is still in "next". My understanding was that it was not
going to graduate to "master" until this issue had been resolved, and
that the current plan was to disable config decoration for --pretty=raw.
That would solve the issue without any effort on the part of gitk.

-Peff

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gitk PATCH] gitk: Disable log.decorate config
  2010-03-20  5:10 ` Paul Mackerras
@ 2010-03-20 11:39   ` Santi Béjar
  0 siblings, 0 replies; 4+ messages in thread
From: Santi Béjar @ 2010-03-20 11:39 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: git

On Sat, Mar 20, 2010 at 6:10 AM, Paul Mackerras <paulus@samba.org> wrote:
> On Fri, Mar 19, 2010 at 11:44:23PM +0100, Santi Béjar wrote:
>
>> Since eb73445 (Add `log.decorate' configuration variable., 2010-02-17)
>> the log output changes if log.decorate is set. Gitk is unable to
>> understand the new output (it returns the error: "Can't parse git log
>> output: {commit $sha1 $sha2...}), so disable it with --no-decorate.
>>
>> Signed-off-by: Santi Béjar <santi@agolina.net>
>> ---
>>  gitk |    2 +-
>>  1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/gitk b/gitk
>> index 1f36a3e..aca44b7 100755
>> --- a/gitk
>> +++ b/gitk
>> @@ -362,7 +362,7 @@ proc start_rev_list {view} {
>>
>>      if {[catch {
>>       set fd [open [concat | git log --no-color -z --pretty=raw --parents \
>> -                      --boundary $args "--" $files] r]
>> +                      --boundary --no-decorate $args "--" $files] r]
>
> We'll need to make that conditional on the git version, since we want
> gitk to continue to work on older git installations.

I see. I didn't find a version check for the --no-color (I know it is
much older, but still), so I did the same.

But as Jeff said it will be solved within git itself.

Santi

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-03-20 11:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-19 22:44 [gitk PATCH] gitk: Disable log.decorate config Santi Béjar
2010-03-20  5:10 ` Paul Mackerras
2010-03-20 11:39   ` Santi Béjar
2010-03-20  5:34 ` Jeff King

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).