eden/fs/store/Diff.cpp
/**
 * Process a TreeEntry that is present only on one side of the diff.
 * We don't know yet if this TreeEntry refers to a Tree or a Blob.
 *
 * If we could not compute a result immediately we will add an entry to
 * childFutures.
 */
Process a TreeEntry that is present only on one side of the diff.
We don't know yet if this TreeEntry refers to a Tree or a Blob.

If we could not compute a result immediately we will add an entry to
childFutures.
Process a TreeEntry that is present only on one side of the diff . We don ' t know yet if this TreeEntry refers to a Tree or a Blob . If we could not compute a result immediately we will add an entry to childFutures .
void TreeDiffer::processOneSideOnly(
    ChildFutures& childFutures,
    RelativePathPiece parentPath,
    const TreeEntry& entry,
    ScmFileStatus status) {
  if (!entry.isTree()) {
    addEntry(parentPath + entry.getName(), status);
    return;
  }
  auto childPath = parentPath + entry.getName();
  auto childFuture = diffOneTree(childPath, entry.getHash(), status);
  childFutures.add(std::move(childPath), std::move(childFuture));
}
void TreeDiffer :: processOneSideOnly ( ChildFutures & childFutures , RelativePathPiece parentPath , const TreeEntry & entry , ScmFileStatus status ) { if ( ! entry . isTree ( ) ) { addEntry ( parentPath + entry . getName ( ) , status ) ; return ; } auto childPath = parentPath + entry . getName ( ) ; auto childFuture = diffOneTree ( childPath , entry . getHash ( ) , status ) ; childFutures . add ( std :: move ( childPath ) , std :: move ( childFuture ) ) ; }
Process a TreeEntry that is present only on one side of the diff.
Process a TreeEntry that is present only on one side of the diff .