Skip to content
Snippets Groups Projects
Select Git revision
  • 4abf8e6ef81e78469148b156ae2d2da70ace627a
  • aosp-new/aosp-new/main default
  • main
  • stable
  • aosp-new/stable
  • master
  • maint
  • repo-1
  • qc-stable
  • clo-stable
  • v2.31
  • v2.30
  • v2.29.9
  • v2.29.8
  • v2.29.7
  • v2.29.6
  • v2.29.5
  • v2.29.4
  • v2.29.3
  • v2.29.2
  • v2.29.1
  • v2.29
  • v2.28
  • v2.27
  • v2.26
  • v2.25
  • v2.24.1
  • v2.24
  • v2.23
  • v2.22
30 results

command.py

Blame
  • user avatar
    David James authored
    It is often useful to be able to include the same project more than
    once, but with different branches and placed in different paths in the
    workspace. Add this feature.
    
    This CL adds the concept of an object directory. The object directory
    stores objects that can be shared amongst several working trees. For
    newly synced repositories, we set up the git repo now to share its
    objects with an object repo.
    
    Each worktree for a given repo shares objects, but has an independent
    set of references and branches. This ensures that repo only has to
    update the objects once; however the references for each worktree are
    updated separately. Storing the references separately is needed to
    ensure that commits to a branch on one worktree will not change the
    HEAD commits of the others.
    
    One nice side effect of sharing objects between different worktrees is
    that you can easily cherry-pick changes between the two worktrees
    without needing to fetch them.
    
    Bug: Issue 141
    Change-Id: I5e2f4e1a7abb56f9d3f310fa6fd0c17019330ecd
    8d201160
    History
    command.py 6.83 KiB