@youcai

1 Followers
15 Following
4 Posts
I believe git was initially designed to support this scenario as refspec being one of its core features. However today it is still impossible to use that for subtree-to-remote mapping without 3rd party tools.

One thing I love about #jujutsu which #git misses is the ability to treat sub repos as full fledged forks. This is naturally comfortable to work with, especially when you need to make changes along with other modules then push them back upstream.

The closest thing I get is using ingydotnet/git-subrepo and push module changes to a local clone dir (yes you can do that with git). Then you can prepare it for PR to upstream.

@GabeMoralesVR std::aligned_alloc can do that (with no extra bytes on the lower side). Just need to write my own adapter for std::list and unique_ptr to work with it. Surprisingly no one has already done that.
me yesterday doing investigation on cpp custom allocators:
okay now we have both foonathan/memory and std::pmr, some of the code must have a aligned heap allocator using std::aligned_alloc or sth
* after 15mins of digging *
NONE OF THEM DOES!!!
#cpp #moderncpp #cplusplus #cpprant