threads / discuss / 5902

gitk does not appreciate file names including spaces

Subject: gitk does not appreciate file names including spaces

## tl;dr

2 messages between Oct 12, 2006 and Oct 12, 2006.

replies: 1people: 2as markdown or json

Sergio Callegari· Oct 12, 2006, 14:45 UTC · lore

Just a short notice about it. Not a big issue, really... just that in the quadrant at the bottom right of the gitk screen, filenames including spaces are not shown properly.

Sergio
-- 
----------------------------------------------------------------
Dr. Sergio Callegari                 Via Fontanelle 40
Researcher                           47100 Forlì
II School of Engineering             Tel. +39.0543.786927
University of Bologna                Fax. +39.0543.786926

Affiliated with:
DEIS  - Dept. of Electronics, Computer Sciences and Systems,
        University of Bologna (www.deis.unibo.it)
ARCES - Advanced Research Center on Electronic Systems for
        Information and Communication Technologies
        Unversity of Bologna  (www.arces.unibo.it)
================================================================
Ray Lehtiniemi· Oct 12, 2006, 15:03 UTC · lore

[PATCH] [PATCH] gitk: Handle spaces in filenames

---
 gitk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gitk b/gitk
index ebbeac6..3196719 100755
--- a/gitk
+++ b/gitk
@@ -4324,7 +4324,7 @@ proc gettreediffline {gdtf ids} {
 	}
 	return
     }
-    set file [lindex $line 5]
+    set file [lrange $line 5 end]
     lappend treediff $file
 }
 
-- 
1.4.3.rc2.ge19ff

← back to recent threads