git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* gitk: Author/Committer name with special characters
@ 2008-07-16 22:24 Torsten Paul
  2008-07-16 23:55 ` Paul Mackerras
  0 siblings, 1 reply; 4+ messages in thread
From: Torsten Paul @ 2008-07-16 22:24 UTC (permalink / raw)
  To: git; +Cc: Paul Mackerras

Hi!

I'm tracking a subversion repository which is running on
a windows machine with git-svn. The user names look like
DOMAIN\username and that's giving a strange display in
gitk as the backslash sequence is evaluated.

I'm not sure if I found the correct place to prevent this,
so I'd like to ask if the following change would be the
correct thing to prepare as patch...

ciao,
   Torsten.


diff --git a/gitk-git/gitk b/gitk-git/gitk
index fddcb45..f114fa2 100644
--- a/gitk-git/gitk
+++ b/gitk-git/gitk
@@ -1510,10 +1510,10 @@ proc parsecommit {id contents listed} {
         set tag [lindex $line 0]
         if {$tag == "author"} {
             set audate [lindex $line end-1]
-           set auname [lrange $line 1 end-2]
+           set auname [join [lrange [split $line] 1 end-2]]
         } elseif {$tag == "committer"} {
             set comdate [lindex $line end-1]
-           set comname [lrange $line 1 end-2]
+           set comname [join [lrange [split $line] 1 end-2]]
         }
      }
      set headline {}

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

end of thread, other threads:[~2008-07-19 15:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-16 22:24 gitk: Author/Committer name with special characters Torsten Paul
2008-07-16 23:55 ` Paul Mackerras
2008-07-17  7:34   ` Torsten Paul
2008-07-19 15:16   ` Torsten Paul

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