Skip to content

improve refspec handling in push, refactor matching in fetch

Steffen Prohaska git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6push: mention --verbose option in documentationDocumentation/git-push.txt+2 -23 replies
2/6push: teach push to pass --verbose option to transport layerbuiltin-push.c transport.c transport.h+9 -20 replies
3/6push: support pushing HEAD to real branch namebuiltin-push.c t/t5516-fetch-push.sh+26 -01 reply
3/6push: support pushing HEAD to real branch namebuiltin-push.c t/t5516-fetch-push.sh+26 -00 replies
4/6add ref_abbrev_matches_full_with_rules()cache.h refs.c sha1_name.c+29 -122 replies
5/6push: use same rules as git-rev-parse to resolve refspecsDocumentation/git-send-pack.txt remote.c t/t5516-fetch-push.sh+15 -62 replies
6/6refactor fetch's ref matching to use ref_abbrev_matches_full_with_rules()cache.h refs.c remote.c +1 more+35 -212 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [REPLACEMENT PATCH 0/6] improve refspec handling in push, refactor matching in fetch

This is a replacement for sp/push-refspec. It is rebased to the current master.

 Documentation/git-push.txt      |    4 ++--
 Documentation/git-send-pack.txt |    4 +++-
 builtin-push.c                  |   11 +++++++++++
 cache.h                         |    4 ++++
 refs.c                          |   31 +++++++++++++++++++++++++++++++
 remote.c                        |   28 +++-------------------------
 sha1_name.c                     |   14 ++------------
 t/t5510-fetch.sh                |   25 +++++++++++++++++++++++++
 t/t5516-fetch-push.sh           |   29 ++++++++++++++++++++++++++++-
 transport.c                     |    8 ++++++--
 transport.h                     |    1 +
 11 files changed, 116 insertions(+), 43 deletions(-)

[PATCH 1/6] push: mention --verbose option in documentation
Push uses parseopts, which supports '--verbose'.

[PATCH 2/6] push: teach push to pass --verbose option to transport layer
Adapted to paresopts changes.

[PATCH 3/6] push: support pushing HEAD to real branch name
Same as before.

[PATCH 4/6] add ref_abbrev_matches_full_with_rules()
[PATCH 5/6] push: use same rules as git-rev-parse to resolve refspecs [PATCH 6/6] refactor fetch's ref matching to use ref_abbrev_matches_full_with_rules()
Start unification of refspec matching rules.