Thread (1 message) 1 message, 1 author, 2016-06-15
  • (off-list ancestor, not in this archive)
  • Re: Call Me Gitless · Junio C Hamano <hidden> · 2016-06-15

Re: Call Me Gitless

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:45:11

"Alexander E Genaud" [off-list ref] writes:
Thanks for pointing me to 'git-rm --cached'.
quoted
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
Funny the first example shows the contents of the index using a '--stage' flag.

$ git ls-files --stage
For ls-files, --cached mode is the default so you did not even have to say
it in your example.

With the option --stage, you are specifying how that --cached state is
shown.  Normally we do not show the object name nor their merge stages,
but we do when you give the --stage option.

Also look at the end of gitcli(7) documentation.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help