git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: John Tapsell <johnflux@gmail.com>
To: Paul Mackerras <paulus@samba.org>
Cc: Steve Wagner <lists@lanwin.de>, git@vger.kernel.org
Subject: Re: .gitk should created hidden in windows
Date: Tue, 24 Mar 2009 02:08:37 +0000	[thread overview]
Message-ID: <43d8ce650903231908y54bb1c34t45a78f218b2ccd9f@mail.gmail.com> (raw)
In-Reply-To: <18887.26239.115820.450313@cargo.ozlabs.ibm.com>

2009/3/23 Paul Mackerras <paulus@samba.org>:
> 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

  parent reply	other threads:[~2009-03-24  2:10 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-17 13:45 .gitk should created hidden in windows Steve Wagner
2009-03-23 10:37 ` Paul Mackerras
2009-03-23 12:18   ` Steve Wagner
2009-03-24  0:04   ` Pat Thoyts
2009-03-24  1:39     ` Johannes Schindelin
2009-04-17 10:49     ` Paul Mackerras
2009-03-24  2:08   ` John Tapsell [this message]
2009-03-24  2:14     ` Johannes Schindelin
  -- strict thread matches above, loose matches on Subject: below --
2009-03-17 15:56 John Dlugosz
2009-03-17 16:06 ` Steve Wagner
2009-03-17 16:11   ` John Dlugosz
2009-03-17 16:35     ` Steve Wagner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43d8ce650903231908y54bb1c34t45a78f218b2ccd9f@mail.gmail.com \
    --to=johnflux@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=lists@lanwin.de \
    --cc=paulus@samba.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).