Skip to content

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

tagged this 21 Jul 08:58
Keep git status showing the push branch after remotes are renamed by finding
the configured remote with the same URL.

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 |   2 +
 Documentation/revisions.adoc     |   3 +
 remote.c                         |  36 +++++++++--
 remote.h                         |   2 +
 t/t5505-remote.sh                | 104 +++++++++++++++++++++++++++++++
 transport.c                      |   5 +-
 6 files changed, 146 insertions(+), 6 deletions(-)

base-commit: 48bbf81c29ca9a4479ec7850fe206518682cdb2f

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