Re: Call Me Gitless
- From
Mark Struberg <struberg@yahoo.de>
- Date
- Aug 19, 2008, 11:31 UTC
- Message-ID
- <660749.49882.qm@web27803.mail.ukl.yahoo.com>
- In-Reply-To
- <ee521d6f0808190157s6a676a75t2ba3ef095f608431@mail.gmail.com>
Hi Alex!
--- Alexander E Genaud <alex@genaud.net> schrieb am Di, 19.8.2008:
Show 15 quoted lines
> Von: Alexander E Genaud <alex@genaud.net> > Betreff: Re: Call Me Gitless > An: "Junio C Hamano" <gitster@pobox.com> > CC: "Peter Valdemar Mørch (Lists)" <4ux6as402@sneakemail.com>, git@vger.kernel.org > Datum: Dienstag, 19. August 2008, 10:57 > ... > Remote never seems to do what I expect, so I manually edit > the .git/refs!! > Nor is git-reset what I expect and use git > checkout (which > does make sense only after a few backup trials). Git-add > adds to the > index but does not create, however git-rm removes from the > index and > does delete (an --index-only or --keep flag might be nice).
This is explicitely stated in the git-rm manpages: --cached: Use this option to unstage and remove paths only from the index. Working tree files, whether modified or not, will be left alone.
> A single term for cache and index should be decided upon. > git diff --cached is not intuitive when 'index' is used > throughout the documentation.
The changes are "cached" in the "Index". But I wouldn't name the "Index" really a "Cache" because it is a lot more. All comments for --cached in the manpages mention the Index mechanism. Additionally there is a more detailed introduction to the Index in section 7 (Git concepts) of the Git User's Manual
LieGrue, strub
__________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com