Skip to content

A natural solution to the @ -> HEAD problem

Ramkumar Ramachandra git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest9 patches 14 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9t1508 (at-combinations): simplify setupt/t1508-at-combinations.sh+2 -40 replies
2/9t1508 (at-combinations): test branches separatelyt/t1508-at-combinations.sh+16 -113 replies
3/9t1508 (at-combinations): improve nonsense()t/t1508-at-combinations.sh+1 -10 replies
4/9t1508 (at-combinations): increase coveraget/t1508-at-combinations.sh+8 -01 reply
5/9t1508 (at-combinations): document @{N} versus HEAD@{N}t/t1508-at-combinations.sh+14 -04 replies
6/9t1508 (at-combinations): test with symbolic refst/t1508-at-combinations.sh+13 -00 replies
7/9remote.c: teach branch_get() to treat symrefs other than HEADremote.c t/t1508-at-combinations.sh+21 -43 replies
8/9sha1_name.c: fix @-parsing bug in interpret_branch_name()sha1_name.c t/t1508-at-combinations.sh+2 -20 replies
9/9refs.c: make @ a pseudo-ref alias to HEADDocumentation/git-check-ref-format.txt Documentation/revisions.txt refs.c +2 more+22 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/9] A natural solution to the @ -> HEAD problem

Hi,

So, we're back with v2 of the series. Six patches add comprehensive tests to at-combinations, guarding against any future bugs. [7/9] is the most important part, where I've fixed branch_get() with a long justification. [8/9] and [9/9] are almost trivial.

As Felipe pointed out, [9/9] might require more documentation, but I don't know where to put it. Help in the area is appreciated.

I've excluded all @-parsing simplification in this series. It will come as a later series based on this one: I'm currently integrating Felipe's work with mine.

Felipe: can I have your sign-off for the first three parts?

Thanks.

Felipe Contreras (3):
t1508 (at-combinations): simplify setup t1508 (at-combinations): test branches separately t1508 (at-combinations): improve nonsense()

Ramkumar Ramachandra (6):
t1508 (at-combinations): increase coverage
t1508 (at-combinations): document @{N} versus HEAD@{N} t1508 (at-combinations): test with symbolic refs remote.c: teach branch_get() to treat symrefs other than HEAD sha1_name.c: fix @-parsing bug in interpret_branch_name() refs.c: make @ a pseudo-ref alias to HEAD

 Documentation/git-check-ref-format.txt |  2 +
 Documentation/revisions.txt            |  8 +++-
 refs.c                                 | 12 +++++-
 remote.c                               | 23 ++++++++++--
 sha1_name.c                            |  2 +-
 t/t1400-update-ref.sh                  |  3 ++
 t/t1508-at-combinations.sh             | 68 ++++++++++++++++++++++++++--------
 7 files changed, 94 insertions(+), 24 deletions(-)
Signature · 1 line
1.8.3.rc0.40.g09a0447