git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: How do I clear the directory cache

From
Petr Baudis <pasky@suse.cz>
Date
Oct 20, 2005, 08:59 UTC
Message-ID
<20051020085931.GW30889@pasky.or.cz>
In-Reply-To
<2b05065b0510170720n5333f03l1941e84c1288fc5d@mail.gmail.com>
  Hello,

Dear diary, on Mon, Oct 17, 2005 at 04:20:42PM CEST, I got a letter where eschvoca <eschvoca@gmail.com> told me that...

Show 11 quoted lines
> If I do a:
> 
> cg-commit
> modifiy some files
> cg-rm <modified files>
> cg-add <a new file>
> cg-rm <a unmodified file>
> 
> Then how do I get back and undo all of the cg-adds and cg-rms?  I want
> cg-status to show the the changes from my commit and my current
> working tree.
  why can't you just do the following?
	cg-add <an unmodified file>
	cg-rm <a new file>
	cg-add <modified files>
  Hmm. Would it be non-marginally useful to offer something like
	cg-reset --adds-removals

to just reset the index? (It's not --index because Cogito users aren't supposed to have to know what an "index" is.)

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
VI has two modes: the one in which it beeps and the one in which
it doesn't.
Previous: eschvocaNext: eschvoca
Message 2 of 11 in “How do I clear the directory cache”
  1. eschvocaOct 17, 2005
  2. Petr BaudisOct 20, 2005
  3. eschvocaOct 21, 2005
  4. Junio C HamanoOct 21, 2005
  5. eschvocaOct 21, 2005
  6. Linus TorvaldsOct 21, 2005
  7. Petr BaudisOct 21, 2005
  8. eschvocaOct 21, 2005
  9. Petr BaudisOct 21, 2005
  10. eschvocaOct 22, 2005
  11. Petr BaudisOct 22, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.