Re: [PATCH 1/2] Add "--only-untracked" flag to status commands.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Aug 25, 2007 at 08:10:05AM CEST, Junio C Hamano wrote:
> Väinö Järvelä <v@xxxxxxxxxx> writes:
> 
> > On Aug 25, 2007, at 01:33, Alex Riesen wrote:
> >
> >>> That line will result in duplicate entries, if files are staged, and
> >>> the output of git-status is neater (but longer) in my opinion.
> >>
> >> That is because it _is_ two times different: between working directory
> >> and the index, and between index and HEAD. git-status _will_ show you
> >> the same for the same reason.
> >>
> >> Besides, why do you want to hide this "duplication"? It shows how the
> >> matters really are.
> 
> The whole argument of "two entries are dups" is showing that you
> might be repeating past mistake of Cogito where hiding the index
> from the user would make git somehow more user friendly.  It was
> a laudable attempt, but did not really fly well in practice.

Hmm, didn't it? I'm not saying that exposing index in Git is a mistake;
Cogito did a conscious deal of power for simplicity. But I don't really
think hiding index in Cogito was a mistake or a failure. The system just
worked a bit differently on the user level and I suspect hiding index
was one of the major reasons why users were choosing it, if they wanted
something that worked more similar to CVS or SVN and didn't feel like
spending effort on re-learning.

> For example, maybe the reason why you do not want to place them
> in the .gitignore file is because the clutter are your random
> wip temporary files, whose naming convention is personal to you
> and does not apply to others.  Naturally, you do not want to put
> such patterns to the tracked .gitignore file, which is for all
> participants of the project.  In such a case, you would want a
> facility to allow you to specify your personal ignore patterns
> that is used in addition to the .gitignore file [*1*].

  .git/info/exclude?

  I was wondering if anyone ever actually uses this curious invention.
This sounds like an actual real-world use case (not that I would see
many of these before ;-).

-- 
				Petr "Pasky" Baudis
Early to rise and early to bed makes a male healthy and wealthy and dead.
                -- James Thurber
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux