Skip to contentSkip to conversation

gitk does not appreciate file names including spaces

PATCH New Sergio Callegari 2 participants 2 messages Jun 15, 2016 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

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

Signature · 13 lines
----------------------------------------------------------------
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)
================================================================

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

PATCH 1/1 gitk: Handle spaces in filenames

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