Skip to content

Commit 9832e4f

Browse files
committed
gitk: Make .gitk a hidden file under windows
This sets the hidden attribute on the ~/.gitk file so it doesn't appear in the windows user profile. Signed-off-by: Paul Mackerras <paulus@samba.org>
1 parent 010509f commit 9832e4f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

gitk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2519,6 +2519,9 @@ proc savestuff {w} {
25192519
if {![winfo viewable .]} return
25202520
catch {
25212521
set f [open "~/.gitk-new" w]
2522+
if {$::tcl_platform(platform) eq {windows}} {
2523+
file attributes "~/.gitk-new" -hidden true
2524+
}
25222525
puts $f [list set mainfont $mainfont]
25232526
puts $f [list set textfont $textfont]
25242527
puts $f [list set uifont $uifont]

0 commit comments

Comments
 (0)