/// <summary> /// Update or add an entry for the given file path. /// </summary> public FileId UpdateOrAdd(string filePath, long sizeInBytes, PipId producerPip, ContentFlags contentFlags) { FileEntry entry = new FileEntry( PathTableBuilder.GetOrAdd(filePath), sizeInBytes, producerPip, contentFlags); return(UpdateOrAdd(entry, m_mergeFunc)); }
/// <summary> /// Update or add an entry for the given file path. /// </summary> /// <remarks> /// If the entry already exists, its content flags will be merged with these, and the other file attributes /// will be updated to the values passed here. /// </remarks> public FileId UpdateOrAdd(string filePath, long sizeInBytes, ContentFlags contentFlags, FileHash hash, int rewriteCount) { FileEntry entry = new FileEntry( PathTableBuilder.GetOrAdd(filePath), sizeInBytes, contentFlags, hash, rewriteCount); return(UpdateOrAdd(entry, m_mergeFunc)); }