author | Shawn O. Pearce <spearce@spearce.org> | |
Fri, 12 Oct 2007 20:33:45 +0000 (16:33 -0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Sat, 13 Oct 2007 03:07:59 +0000 (23:07 -0400) | ||
commit | 82dd4e0465282e39962ba8fdb01c42aa665b1999 | |
tree | 31b3739cb07b55ac976cae9d387b1650d14d1ce2 | tree | snapshot |
parent | ba6c761e6287f9987d70ed4d2a609a7ed415a6a5 | commit | diff |
git-gui: Collapse $env(HOME) to ~/ in recent repositories on Windows
Apparently native Tcl/Tk on Windows is using \ as the return value
from [file separator] but [file normalize] on that same system is
using / rather than \ to represent a directory separator. I really
think that is nuts, but its what is happening.
So we can actually just hardcode our separator to / as all systems
we support (Windows, Mac OS X, UNIX) use /.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Apparently native Tcl/Tk on Windows is using \ as the return value
from [file separator] but [file normalize] on that same system is
using / rather than \ to represent a directory separator. I really
think that is nuts, but its what is happening.
So we can actually just hardcode our separator to / as all systems
we support (Windows, Mac OS X, UNIX) use /.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
lib/choose_repository.tcl | diff | blob | history |