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

Re: "p4 revert -a" equivalent in git?

From
LTLuben Tuikov <ltuikov@yahoo.com>
Date
Dec 24, 2005, 00:36 UTC
Message-ID
<20051224003615.47349.qmail@web31807.mail.mud.yahoo.com>
In-Reply-To
<7vd5jn4a36.fsf@assigned-by-dhcp.cox.net>
--- Junio C Hamano <junkio@cox.net> wrote:
Show 8 quoted lines
> That's what "git-update-index --refresh" does, unless I am
> misreading what you say you want.
> 
> 	$ git checkout master
>         $ touch *.c
> 	$ git diff-index HEAD ;# tons of changes
>         $ git update-index --refresh
> 	$ git diff-index HEAD ;# no changes

Ok, thanks. I wasn't sure if I had to specify the file names on the command line of "git-update-index --refresh". It looks like I don't have to, so this is a perfect equivalent.

Thanks,
   Luben
Previous: Junio C Hamano
Message 3 of 3 in “"p4 revert -a" equivalent in git?”
  1. Luben TuikovDec 24, 2005
  2. Junio C HamanoDec 24, 2005
  3. Luben TuikovDec 24, 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.