git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] gitk: expand $config_file_tmp before reporting to user
@ 2017-09-28  4:14 Max Kirillov
  2017-09-28  4:37 ` Junio C Hamano
  0 siblings, 1 reply; 7+ messages in thread
From: Max Kirillov @ 2017-09-28  4:14 UTC (permalink / raw)
  To: Paul Mackerras, Johannes Schindelin; +Cc: Max Kirillov, Junio C Hamano, git

Tilda-based path may confise some users. First, tilda is not known
for Window users, second, it may point to unexpected location
depending on various environment setup.

Expand the path to "nativename", so that ~/.config/git/gitk-tmp
would be "C:\Users\user\.config\git\gitk-tmp", for example.
It should be less cryptic

Signed-off-by: Max Kirillov <max@max630.net>
---
 gitk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gitk b/gitk
index 877d49e1de..48c1d3e714 100755
--- a/gitk
+++ b/gitk
@@ -2844,7 +2844,8 @@ proc config_check_tmp_exists {tries_left} {
 	if {$tries_left > 0} {
 	    after 100 [list config_check_tmp_exists $tries_left]
 	} else {
-	    error_popup "There appears to be a stale $config_file_tmp\
+	    error_popup "There appears to be a stale \
+ \"[file nativename $config_file_tmp]\" \
  file, which will prevent gitk from saving its configuration on exit.\
  Please remove it if it is not being used by any existing gitk process."
 	}
-- 
2.11.0.1122.gc3fec58.dirty


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

end of thread, other threads:[~2017-09-29 20:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-28  4:14 [PATCH] gitk: expand $config_file_tmp before reporting to user Max Kirillov
2017-09-28  4:37 ` Junio C Hamano
2017-09-28  4:47   ` Junio C Hamano
2017-09-28 12:31     ` Johannes Schindelin
2017-09-28 22:03       ` Junio C Hamano
2017-09-29  4:34       ` Max Kirillov
2017-09-29 20:24   ` Uxío Prego

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