diff options
| author | Patrick Steinhardt <ps@pks.im> | 2026-07-06 15:27:07 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-07-06 07:45:57 -0700 |
| commit | fa4eefe900b679c58ee0013198a9b11d036531ad (patch) | |
| tree | 83ea354409f6495f7181ed12b48cf0f74803c622 /contrib/persistent-https/socket.go | |
| parent | 2540e35bc185635d7428a1cd0f55caacd68b8ff6 (diff) | |
builtin/refs: add "create" subcommand
The "update" subcommand cannot only update an existing reference, but it
can also create new branches and delete existing branches by specifying
the all-zeroes object ID as either old or new value. Despite that, we
already have the "delete" subcommand as a handy shortcut so that a user
can easily delete a branch. This relieves them of needing to understand
the more arcane uses of the "update" command, and of counting the number
of zeroes they need to pass.
But while we have a "delete" subcommand, we don't have an equivalent
that would allow the user to create a new branch, which creates a
certain asymmetry.
Add a new "create" subcommand to plug this gap.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https/socket.go')
0 files changed, 0 insertions, 0 deletions
