Skip to content

a small branch API clean-up

Junio C Hamano git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3branch: streamline "attr_only" handling in validate_new_branchname()branch.c+12 -81 reply
2/3branch: split validate_new_branchname() into twobranch.c branch.h builtin/branch.c +1 more+44 -352 replies
3/3branch: forbid refs/heads/HEADsha1_name.c t/t1430-bad-ref-name.sh+9 -17 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchJeff KingKaartic Sivaraam
SeriesHelped-by Helped-by Helped-by
1/3
2/3
3/3Helped-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] a small branch API clean-up

This started as a little clean-up for a NEEDSWORK comment in branch.h, but it ended up adding a rather useful safety feature.

Junio C Hamano (3):
branch: streamline "attr_only" handling in validate_new_branchname()
branch: split validate_new_branchname() into two
branch: forbid refs/heads/HEAD

 branch.c                | 44 ++++++++++++++++++++++++++++++--------------
 branch.h                | 27 ++++++++++++---------------
 builtin/branch.c        |  8 ++++----
 builtin/checkout.c      | 10 +++++-----
 sha1_name.c             |  2 +-
 t/t1430-bad-ref-name.sh |  8 ++++++++
 6 files changed, 60 insertions(+), 39 deletions(-)
Signature · 1 line
2.15.0-rc1-158-gbd035ae683