Skip to content
  • Junio C Hamano's avatar
    write-tree: --prefix=<path> · 6bd20358
    Junio C Hamano authored
    
    
    The "bind" commit can express an aggregation of multiple
    projects into a single commit.
    
    In such an organization, there would be one project, root of
    whose tree object is at the same level of the root of the
    aggregated projects, and other projects have their toplevel in
    separate subdirectories.  Let's call that root level project the
    "primary project", and call other ones just "subprojects".
    
    You would first read-tree the primary project, and then graft
    the subprojects under their appropriate location using read-tree
    --prefix=<subdir>/ repeatedly.
    
    To write out a tree object from such an index for a subproject,
    write-tree --prefix=<subdir>/ is used.
    
    Signed-off-by: default avatarJunio C Hamano <junkio@cox.net>
    6bd20358