From: "Thomas Kolejka" <Thomas.Kolejka@gmx.at>
To: Paul Mackerras <paulus@samba.org>
Cc: git@vger.kernel.org, Junio C Hamano <junkio@cox.net>
Subject: [PATCH] Display "gitweb/test/file with spaces" in gitk
Date: Thu, 20 Jul 2006 12:12:23 +0200 [thread overview]
Message-ID: <20060720101223.116320@gmx.net> (raw)
Hello,
with this patch files with spaces in their names are displayed
in the treeview of gitk.
I use git to make a "backup"/"dump" of a DOS-FS .. and there are
those filenames ;-).
Take care .. it's my first tcl hack!
Thomas
--
diff --git a/gitk b/gitk
index ba4644f..93af19c 100755
--- a/gitk
+++ b/gitk
@@ -3938,7 +3938,7 @@ proc gettreeline {gtf id} {
while {[gets $gtf line] >= 0} {
if {[lindex $line 1] ne "blob"} continue
set sha1 [lindex $line 2]
- set fname [lindex $line 3]
+ set fname [join [lrange $line 3 end]]
lappend treefilelist($id) $fname
lappend treeidlist($id) $sha1
}
@@ -4147,7 +4147,7 @@ proc gettreediffline {gdtf ids} {
}
return
}
- set file [lindex $line 5]
+ set file [join [lrange $line 5 end]]
lappend treediff $file
}
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
next reply other threads:[~2006-07-20 10:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-20 10:12 Thomas Kolejka [this message]
2006-07-21 13:01 ` [PATCH] Display "gitweb/test/file with spaces" in gitk Paul Mackerras
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060720101223.116320@gmx.net \
--to=thomas.kolejka@gmx.at \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
--cc=paulus@samba.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).