Skip to content

pr-git-2358/HaraldNordgren/remote-resolve-url-push-tracking-v4

tagged this 22 Jul 18:08
Fix git status not showing the push branch after remotes are renamed, when
branch.<name>.pushRemote is a URL matching exactly one configured remote.

Changes in v4:

 * Match configured remotes by effective push URL, preferring pushurl over
   url.
 * Update the documentation and rationale to describe where the remote would
   push.

Changes in v3:

 * Revamp commit messages to clarify motivation.

Changes in v2:

 * Clarify that URL push destinations already work and that this change only
   restores their tracking information.
 * Document URL values for branch.<name>.pushRemote and their @{push}
   behavior.

Harald Nordgren (2):
  remote: pass repository to push tracking helper
  remote: find tracking branches for URL push destinations

 Documentation/config/branch.adoc |   1 +
 Documentation/revisions.adoc     |   3 +
 remote.c                         |  54 ++++++++++--
 remote.h                         |   2 +
 t/t5505-remote.sh                | 144 +++++++++++++++++++++++++++++++
 transport.c                      |   5 +-
 6 files changed, 203 insertions(+), 6 deletions(-)

base-commit: 5d2e7709234afea1b6ddb25cd4f60d3d5fb3c200

Submitted-As: https://lore.kernel.org/git/pull.2358.v4.git.git.1784743738.gitgitgadget@gmail.com
In-Reply-To: https://lore.kernel.org/git/pull.2358.git.git.1784538618.gitgitgadget@gmail.com
In-Reply-To: https://lore.kernel.org/git/pull.2358.v2.git.git.1784624306.gitgitgadget@gmail.com
In-Reply-To: https://lore.kernel.org/git/pull.2358.v3.git.git.1784664859.gitgitgadget@gmail.com
Assets 2
Loading