* git-gui disagrees with git status
@ 2010-05-10 21:32 Bill Winspur
2010-05-10 21:39 ` Shawn O. Pearce
0 siblings, 1 reply; 7+ messages in thread
From: Bill Winspur @ 2010-05-10 21:32 UTC (permalink / raw)
To: git
Using git version 1.6.0.4
- Created an eclipse wkspace, with a couple of projects in it.
- Created a git repos at the workspace route, using cli.
- Using cli added the two projects to git - at this point git status
shows the following
=====
bwinspur@elm:~/ca.wydv.
workspaces/008-leaning-group/git-lrng-wksp$ git status
# On branch master
#
# Initial commit
#
# Changes to be committed:
# (use "git rm --cached <file>..." to unstage)
#
# new file: git.trial.help.bundle/.classpath
=== omitted details from this post ==
# new file: git.trial.ui.bundle/.classpath
=== omitted details from this post ==
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# .metadata/
bwinspur@elm:~/ca.wydv.workspaces/008-leaning-group/git-lrng-wksp$
=====
which is what I expected: my project folders are tracked, and
.metadata/ is untracked.
- now I bring up git gui and it shows all the files under .metadata/ as
unstaged changes, which conflicts with git status, and may be due to a
git-gui bug
Regards,
Bill Winspur
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: git-gui disagrees with git status
2010-05-10 21:32 git-gui disagrees with git status Bill Winspur
@ 2010-05-10 21:39 ` Shawn O. Pearce
2010-05-11 5:41 ` Miles Bader
0 siblings, 1 reply; 7+ messages in thread
From: Shawn O. Pearce @ 2010-05-10 21:39 UTC (permalink / raw)
To: Bill Winspur; +Cc: git
Bill Winspur <bwinspur@gmail.com> wrote:
> #
> # Untracked files:
> # (use "git add <file>..." to include in what will be committed)
> #
> # .metadata/
> bwinspur@elm:~/ca.wydv.workspaces/008-leaning-group/git-lrng-wksp$
> =====
>
> which is what I expected: my project folders are tracked, and
> .metadata/ is untracked.
>
> - now I bring up git gui and it shows all the files under .metadata/ as
> unstaged changes, which conflicts with git status, and may be due to a
> git-gui bug
Its more a feature.
git-gui shows all untracked files, recursively expanding any
directories which contain untracked files. git status collapses
them up. If you don't want to track a directory, maybe you should
configure it in one of the many gitignore locations so neither git
status nor git gui shows it.
--
Shawn.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: git-gui disagrees with git status
2010-05-10 21:39 ` Shawn O. Pearce
@ 2010-05-11 5:41 ` Miles Bader
2010-05-11 5:57 ` Johannes Sixt
0 siblings, 1 reply; 7+ messages in thread
From: Miles Bader @ 2010-05-11 5:41 UTC (permalink / raw)
To: Shawn O. Pearce; +Cc: Bill Winspur, git
"Shawn O. Pearce" <spearce@spearce.org> writes:
> Its more a feature.
>
> git-gui shows all untracked files, recursively expanding any
> directories which contain untracked files. git status collapses
> them up.
Wait, why is this a feature, exactly...?
It may be well known that git-gui works this way, but that doesn't make
it good behavior for the user.
-Miles
--
"Suppose we've chosen the wrong god. Every time we go to church we're
just making him madder and madder." -- Homer Simpson
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: git-gui disagrees with git status
2010-05-11 5:41 ` Miles Bader
@ 2010-05-11 5:57 ` Johannes Sixt
2010-05-11 6:27 ` Miles Bader
2010-05-11 6:27 ` Jonathan Nieder
0 siblings, 2 replies; 7+ messages in thread
From: Johannes Sixt @ 2010-05-11 5:57 UTC (permalink / raw)
To: Miles Bader; +Cc: Shawn O. Pearce, Bill Winspur, git
Am 5/11/2010 7:41, schrieb Miles Bader:
> "Shawn O. Pearce" <spearce@spearce.org> writes:
>> Its more a feature.
>>
>> git-gui shows all untracked files, recursively expanding any
>> directories which contain untracked files. git status collapses
>> them up.
>
> Wait, why is this a feature, exactly...?
>
> It may be well known that git-gui works this way, but that doesn't make
> it good behavior for the user.
Oh, it *is* good behavior. Otherwise, it would not be possible to stage a
file that resides in a currently untracked directory; you would have to
fall back to 'git add' on the command line.
-- Hannes
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: git-gui disagrees with git status
2010-05-11 5:57 ` Johannes Sixt
@ 2010-05-11 6:27 ` Miles Bader
2010-05-11 6:27 ` Jonathan Nieder
1 sibling, 0 replies; 7+ messages in thread
From: Miles Bader @ 2010-05-11 6:27 UTC (permalink / raw)
To: Johannes Sixt; +Cc: Shawn O. Pearce, Bill Winspur, git
On Tue, May 11, 2010 at 2:57 PM, Johannes Sixt <j.sixt@viscovery.net> wrote:
>>> Its more a feature.
>>>
>>> git-gui shows all untracked files, recursively expanding any
>>> directories which contain untracked files. git status collapses
>>> them up.
>>
>> Wait, why is this a feature, exactly...?
>>
>> It may be well known that git-gui works this way, but that doesn't make
>> it good behavior for the user.
>
> Oh, it *is* good behavior. Otherwise, it would not be possible to stage a
> file that resides in a currently untracked directory; you would have to
> fall back to 'git add' on the command line.
Since it's a GUI, though, it's allowed to use interaction -- so even
_better_ behavior would be to only show unknown directories as single
entries but allow the user to expand them interactively in the
(probably rather rare) case that they want to add some file in an
untracked directory.
-Miles
--
Do not taunt Happy Fun Ball.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: git-gui disagrees with git status
2010-05-11 5:57 ` Johannes Sixt
2010-05-11 6:27 ` Miles Bader
@ 2010-05-11 6:27 ` Jonathan Nieder
[not found] ` <AANLkTimcB8Ozqhti66cYzNMkIcIDIxChCj_8GDrhC4ep@mail.gmail.com>
1 sibling, 1 reply; 7+ messages in thread
From: Jonathan Nieder @ 2010-05-11 6:27 UTC (permalink / raw)
To: Johannes Sixt; +Cc: Miles Bader, Shawn O. Pearce, Bill Winspur, git
Johannes Sixt wrote:
>> "Shawn O. Pearce" <spearce@spearce.org> writes:
>>> Its more a feature.
>>>
>>> git-gui shows all untracked files, recursively expanding any
>>> directories which contain untracked files. git status collapses
>>> them up.
[...]
> Oh, it *is* good behavior. Otherwise, it would not be possible to stage a
> file that resides in a currently untracked directory; you would have to
> fall back to 'git add' on the command line.
I would say rather it is the best we have. Much better would be to
display untracked directories using a tree view (like gitk’s
treeview), starting out collapsed[1].
Jonathan
[1] http://bugs.debian.org/572805
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-05-11 14:27 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-10 21:32 git-gui disagrees with git status Bill Winspur
2010-05-10 21:39 ` Shawn O. Pearce
2010-05-11 5:41 ` Miles Bader
2010-05-11 5:57 ` Johannes Sixt
2010-05-11 6:27 ` Miles Bader
2010-05-11 6:27 ` Jonathan Nieder
[not found] ` <AANLkTimcB8Ozqhti66cYzNMkIcIDIxChCj_8GDrhC4ep@mail.gmail.com>
[not found] ` <20100511140458.GA3132@progeny.tock>
[not found] ` <AANLkTilDmQBIq2xJCx_t5Qt15xXFK_3JRoiI6Y_Y8F-2@mail.gmail.com>
2010-05-11 14:27 ` Jonathan Nieder
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).