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

Re: [PATCH] Make 'remote show' distinguish between merged and rebased remote branches

From
Marc Branchaud <marcnarc@xiplink.com>
Date
Feb 11, 2009, 21:35 UTC
Message-ID
<4993449B.2040401@xiplink.com>
In-Reply-To
<76718490902101513i504e515ocb4a2d789ba520f0@mail.gmail.com>
Jay Soffian wrote:
Show 19 quoted lines
> 
> The output of git remote show seems much too verbose for the
> information it provides. Something like this, I think, provides the
> same information in much less space:
> 
> * remote origin
>   URL: git://git.kernel.org/pub/scm/git/git.git
>   Remote branches:
>     html      Not tracked
>     maint     Tracked
>     man       Tracked
>     master    Tracked
>     next      Tracked
>     pu        Tracked
>     todo      Not tracked
>     old-next  Stale (would prune)
>   Local branches configured to pull from this remote:
>     master           upstream is master (merges)
>     wip/remote-HEAD  upstream is next   (rebases)
The current test case for 'remote show' (without my rebase patch) is:
* remote origin
  URL: $(pwd)/one
  Remote branch merged with 'git pull' while on branch master
    master
  New remote branch (next fetch will store in remotes/origin)
    master
  Tracked remote branches
    side
    master
  Local branches pushed with 'git push'
    master:upstream
    +refs/tags/lastbackup
Should that last bit about 'git push' change as well (I admit I don't really understand what that part is saying)?  Or should we just be consistent?  Maybe something like:
* remote origin
  URL: $(pwd)/one
  Remote branches:
    master  Tracked
    side    Not tracked
    flip    Tracked
  New remote branch (next fetch will store in remotes/origin)
    master
  Local branches tracking this remote:
    master   upstream is master (merges)
    rebaser  upstream is flip   (rebases)
  Local branches pushed with 'git push'
    master:upstream
    +refs/tags/lastbackup
		M.
Previous: Junio C HamanoNext: Johannes Schindelin
Message 8 of 9 in “Make 'remote show' distinguish between merged and rebased remote branches”
  1. Make 'remote show' distinguish between merged and rebased remote branchesMarc Branchaud, Feb 10, 2009
  2. Junio C HamanoFeb 10, 2009
  3. Marc BranchaudFeb 10, 2009
  4. Jay SoffianFeb 10, 2009
  5. Marc BranchaudFeb 11, 2009
  6. Johannes SixtFeb 11, 2009
  7. Junio C HamanoFeb 11, 2009
  8. Marc BranchaudFeb 11, 2009
  9. Johannes SchindelinFeb 10, 2009

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.