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

ce_stage(..) == 2?

From
Ccg <chengang31@gmail.com>
Date
Feb 15, 2010, 06:48 UTC
Message-ID
<4B78EE4B.2040707@gmail.com>
Hi,

I saw some code like: attr.c(365): if (ce_stage(istate->cache[i]) == 2) ... rerere.c(352): if (ce_stage(e2) == 2 ...

but there is no 0x200 in cache.h(158): #define CE_NAMEMASK (0x0fff) #define CE_STAGEMASK (0x3000) #define CE_EXTENDED (0x4000) #define CE_VALID (0x8000) #define CE_STAGESHIFT 12

so what does "2" mean?

Thanks cg

Next: Junio C Hamano
Message 1 of 2 in “ce_stage(..) == 2?”
  1. cgFeb 15, 2010
  2. Junio C HamanoFeb 15, 2010

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.