git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 0/2] Branch --set-upstream

From
ILIlari Liusvaara <ilari.liusvaara@elisanet.fi>
Date
Jan 18, 2010, 20:44 UTC
Message-ID
<1263847452-29634-1-git-send-email-ilari.liusvaara@elisanet.fi>

This adds new switch --set-upstream that can set upstream information on existing branch branch without changing where the branch points to.

push --set-upstream doesn't help if user doesn't have push priviledges or if user is not up to date with upstream. Forcing branch recreate is not possible if user has own patches appiled to the branch.

This series is edited version of Matthieu Moy's branch --track patch series. The first patch is edited, the second is resent as-is.

Ilari Liusvaara (1):
  Add branch --set-upstream
Matthieu Moy (1):
  branch: warn and refuse to set a branch as a tracking branch of
    itself.
 Documentation/git-branch.txt |    8 ++++++-
 branch.c                     |   45 ++++++++++++++++++++++++++++++-----------
 builtin-branch.c             |    2 +
 cache.h                      |    1 +
 t/t6040-tracking-info.sh     |   21 +++++++++++++++++++
 5 files changed, 64 insertions(+), 13 deletions(-)
Next: Ilari Liusvaara
Message 1 of 4 in “Branch --set-upstream”
  1. 0/2 Branch --set-upstreamIlari Liusvaara, Jan 18, 2010
  2. 1/2 Add branch --set-upstreamIlari Liusvaara, Jan 18, 2010
  3. Matthieu MoyJan 19, 2010
  4. 2/2 branch: warn and refuse to set a branch as a tracking branch of itself.Ilari Liusvaara, Jan 18, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.