git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: .gitk should created hidden in windows

From
John Tapsell <johnflux@gmail.com>
Date
Mar 24, 2009, 02:08 UTC
Message-ID
<43d8ce650903231908y54bb1c34t45a78f218b2ccd9f@mail.gmail.com>
In-Reply-To
<18887.26239.115820.450313@cargo.ozlabs.ibm.com>
2009/3/23 Paul Mackerras <paulus@samba.org>:
Show 29 quoted lines
> Steve Wagner writes:
>
>> The problem is that windows dose not hides files beginning with a dot as
>> it is in unix. So the .gitk file is created as visible in the windows
>> user profile. Problematic too is that i can no set the hidden attribute
>> to this file, because it is recreated every time i start gitk, so the
>> hidden attribute gets lost.
>>
>> Can you control this and create the file with the hidden attribute on
>> windows?
>
> Please try this patch and let me know if it does what you want.
>
> Paul.
>
> diff --git a/gitk b/gitk
> index d7de27e..54f3f2b 100755
> --- a/gitk
> +++ b/gitk
> @@ -2487,6 +2487,9 @@ proc savestuff {w} {
>     if {![winfo viewable .]} return
>     catch {
>        set f [open "~/.gitk-new" w]
> +       if {$::tcl_platform(platform) eq {windows}} {
> +           file attributes "~/.gitk-new" -hidden true
> +       }
>        puts $f [list set mainfont $mainfont]
>        puts $f [list set textfont $textfont]
>        puts $f [list set uifont $uifont]
How about making all files beginning with .  hidden?  .gitignore for example
Previous: Paul MackerrasNext: Johannes Schindelin
Message 7 of 8 in “.gitk should created hidden in windows”
  1. Steve WagnerMar 17, 2009
  2. Paul MackerrasMar 23, 2009
  3. Steve WagnerMar 23, 2009
  4. Pat ThoytsMar 24, 2009
  5. Johannes SchindelinMar 24, 2009
  6. Paul MackerrasApr 17, 2009
  7. John TapsellMar 24, 2009
  8. Johannes SchindelinMar 24, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.