I’ve got a server serving git repositories, bare, they can be pulled from and pushed to as normal.
For convenience, I’d like to support sending patches via a side channel and having those patches get applied to relevant branches by the server.
However as far as I can tell neither git am
nor git apply
support working with bare repositories, applying patches to tree-ish objects.
Obviously it’s always possible to create a worktree or clone-with-working copy and apply patches to that, but that’s a lot of FS churn, so I wanted to know if there’s a way to do that built-in, without having to parse and apply patches “by hand” to individual blobs.