Skip to content

Fix a bug in ref-filter

Damien Robert git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1Fix %(push:track) in ref-filterref-filter.c remote.c remote.h +1 more+80 -216 replies

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchJeff King
1/1Helped-by R-b

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/1] Fix a bug in ref-filter

Dear git developers,

Testing the behaviour of git with respect to pushing and pulling, I noticed that %(push:track) in git for-each-ref reported the wrong value (ie the upstream's value rather than the push one).

This patch fixes that.

Please tell me if you would prefer I split this patch in two, one introducing stat_push_info in remote.c and the following one using it in ref-filter.c

Damien Robert (1):
Fix %(push:track) in ref-filter

 ref-filter.c            |  7 ++--
 remote.c                | 78 +++++++++++++++++++++++++++++++----------
 remote.h                |  2 ++
 t/t6300-for-each-ref.sh | 12 ++++++-
 4 files changed, 78 insertions(+), 21 deletions(-)
Signature · 1 line
Patched on top of v2.21.0-196-g041f5ea1cf (git version 2.21.0)