git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Gitk/Cygwin bug: phony local changes
@ 2008-10-27 15:22 Hannu Koivisto
  2008-10-28 15:12 ` Hannu Koivisto
  0 siblings, 1 reply; 4+ messages in thread
From: Hannu Koivisto @ 2008-10-27 15:22 UTC (permalink / raw)
  To: git

Greetings,

git clone git://git.kernel.org/pub/scm/git/git.git
cd git
gitk

with Cygwin build of git version 1.6.0.3.523.g304d0 in Windows XP
SP2 with Cygwin dll version 1.5.24 results to gitk showing "Local
uncommitted changes, not checked in to index" entry in the history
tree and if I select that entry, it seems to indicate that all
files have changed but without any actual content changes.

git status doesn't show any changes.

If I run git diff (which displays no changes) or git reset and then
run gitk again, there is no longer that "Local uncommitted
changes..." entry.

Since it was suggested on #irc, I tried "git config --global
core.trustctime false" but that didn't help, which I suppose was
expected since the documentation talks about differences between
the index and the working copy and I haven't added anything to the
index.

I can reproduce this problem with another (private) repository as
well.

-- 
Hannu

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

* Re: Gitk/Cygwin bug: phony local changes
  2008-10-27 15:22 Gitk/Cygwin bug: phony local changes Hannu Koivisto
@ 2008-10-28 15:12 ` Hannu Koivisto
  2008-10-28 15:27   ` Alex Riesen
  0 siblings, 1 reply; 4+ messages in thread
From: Hannu Koivisto @ 2008-10-28 15:12 UTC (permalink / raw)
  To: git

Hannu Koivisto <azure@iki.fi> writes:

> Greetings,
>
> git clone git://git.kernel.org/pub/scm/git/git.git
> cd git
> gitk
>
> with Cygwin build of git version 1.6.0.3.523.g304d0 in Windows XP
> SP2 with Cygwin dll version 1.5.24 results to gitk showing "Local
> uncommitted changes, not checked in to index" entry in the history
> tree and if I select that entry, it seems to indicate that all
> files have changed but without any actual content changes.
>
> git status doesn't show any changes.
>
> If I run git diff (which displays no changes) or git reset and then
> run gitk again, there is no longer that "Local uncommitted
> changes..." entry.
>
> Since it was suggested on #irc, I tried "git config --global
> core.trustctime false" but that didn't help, which I suppose was
> expected since the documentation talks about differences between
> the index and the working copy and I haven't added anything to the
> index.
>
> I can reproduce this problem with another (private) repository as
> well.

I used bisect to find which commit introduced this bug and the
result is:

7faee6b8de836904227ee98dc3d2c4c75b0ef3a1 is first bad commit
commit 7faee6b8de836904227ee98dc3d2c4c75b0ef3a1
Author: Mark Levedahl <mlevedahl@gmail.com>
Date:   Mon Oct 13 00:33:31 2008 -0400

    compat/cygwin.c - Use cygwin's stat if core.filemode == true

    Cygwin's POSIX emulation allows use of core.filemode true, unlike native
    Window's implementation of stat / lstat, and Cygwin/git users who have
    configured core.filemode true in various repositories will be very
    unpleasantly surprised to find that git is no longer honoring that option.
    So, this patch forces use of Cygwin's stat functions if core.filemode is
    set true, regardless of any other considerations.
   
    Signed-off-by: Mark Levedahl <mlevedahl@gmail.com>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>

:040000 040000 8cbed462649839a444f63c54ddc5b1a0fb5eed8e 4dab6846ae35f2c5d2971d5810c30b39278c7060 M      Documentation
:040000 040000 f64d96b06609aadc586fa4312a57900c911779df cbf9743456a38bb3584e48e27d4659e8ec3b0be4 M      compat

-- 
Hannu

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

* Re: Gitk/Cygwin bug: phony local changes
  2008-10-28 15:12 ` Hannu Koivisto
@ 2008-10-28 15:27   ` Alex Riesen
  2008-10-28 16:04     ` Hannu Koivisto
  0 siblings, 1 reply; 4+ messages in thread
From: Alex Riesen @ 2008-10-28 15:27 UTC (permalink / raw)
  To: Hannu Koivisto; +Cc: git

2008/10/28 Hannu Koivisto <azure@iki.fi>:

> I used bisect to find which commit introduced this bug and the
> result is:
>
> 7faee6b8de836904227ee98dc3d2c4c75b0ef3a1 is first bad commit
> commit 7faee6b8de836904227ee98dc3d2c4c75b0ef3a1
> Author: Mark Levedahl <mlevedahl@gmail.com>
> Date:   Mon Oct 13 00:33:31 2008 -0400
>
>    compat/cygwin.c - Use cygwin's stat if core.filemode == true
>

Could you try the patch from Junio's "Re: [PATCH] Only update the
cygwin-related configuration during state auto-setup" mail and see
if it changes anything?

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

* Re: Gitk/Cygwin bug: phony local changes
  2008-10-28 15:27   ` Alex Riesen
@ 2008-10-28 16:04     ` Hannu Koivisto
  0 siblings, 0 replies; 4+ messages in thread
From: Hannu Koivisto @ 2008-10-28 16:04 UTC (permalink / raw)
  To: git

"Alex Riesen" <raa.lkml@gmail.com> writes:

> 2008/10/28 Hannu Koivisto <azure@iki.fi>:
>
>> I used bisect to find which commit introduced this bug and the
>> result is:
>>
>> 7faee6b8de836904227ee98dc3d2c4c75b0ef3a1 is first bad commit
>> commit 7faee6b8de836904227ee98dc3d2c4c75b0ef3a1
>> Author: Mark Levedahl <mlevedahl@gmail.com>
>> Date:   Mon Oct 13 00:33:31 2008 -0400
>>
>>    compat/cygwin.c - Use cygwin's stat if core.filemode == true
>>
>
> Could you try the patch from Junio's "Re: [PATCH] Only update the
> cygwin-related configuration during state auto-setup" mail and see
> if it changes anything?

It seems to fix the problem.

Something I forgot to mention in the previous mail: the problem
occurs whether I have core.fileMode set to true or false.

-- 
Hannu

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

end of thread, other threads:[~2008-10-28 16:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-27 15:22 Gitk/Cygwin bug: phony local changes Hannu Koivisto
2008-10-28 15:12 ` Hannu Koivisto
2008-10-28 15:27   ` Alex Riesen
2008-10-28 16:04     ` Hannu Koivisto

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