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

"p4 revert -a" equivalent in git?

From
LTLuben Tuikov <ltuikov@yahoo.com>
Date
Dec 24, 2005, 00:13 UTC
Message-ID
<20051224001308.7078.qmail@web31805.mail.mud.yahoo.com>
Hi,

Is there a "p4 revert -a" equivalent in git or should I whip up a script using git-diff-index and git-update-index?

That is I want to git-update-index --refresh for all files whose inode may have changed but the actual file data has not (i.e. git-diff-index is empty).

Thanks,
   Luben
Next: Junio C Hamano
Message 1 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.