src/models/GitIndex.js
function parseCacheEntryFlags (bits) {
  return {
    assumeValid: Boolean(bits & 0b1000000000000000),
    extended: Boolean(bits & 0b0100000000000000),
    stage: (bits & 0b0011000000000000) >> 12,
    nameLength: bits & 0b0000111111111111
  }
}
function parseCacheEntryFlags (bits) {
  return {
    assumeValid: Boolean(bits & 0b1000000000000000),
    extended: Boolean(bits & 0b0100000000000000),
    stage: (bits & 0b0011000000000000) >> 12,
    nameLength: bits & 0b0000111111111111
  }
}
function parseCacheEntryFlags ( bits ) { return { assumeValid : Boolean ( bits & 0b1000000000000000 ) , extended : Boolean ( bits & 0b0100000000000000 ) , stage : ( bits & 0b0011000000000000 ) >> 12 , nameLength : bits & 0b0000111111111111 } }
Extract 1-bit assume-valid, 1-bit extended flag, 2-bit merge state flag, 12-bit path length flag
Extract 1 - bit assume - valid 1 - bit extended flag 2 - bit merge state flag 12 - bit path length flag