@x_cli

Suppose the main manager of a git repository proposes two branches (e.g. main and dev).
If I worked on the dev branch, the patch I will send does not have information about the branch I was working on, nor information about the official commit it applies to.

I may be wrong.

@tanavit @x_cli branch always relate to a commit no need to have branch information , see PostgreSQL project https://wiki.postgresql.org/wiki/Working_with_Git
Working with Git - PostgreSQL wiki

@kryskool

You could have several branches starting from the same commit.

A commit does not identify a branch.

@x_cli

@tanavit @x_cli before apply a patch on local you need to checkout a branch, branch name can be différent in local and remote, i see no problem to apply a patch on the right branch