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

Re: [PATCH 1/2] add basic branch display tests

From
Jay Soffian <jaysoffian@gmail.com>
Date
Feb 19, 2009, 03:51 UTC
Message-ID
<76718490902181951p54dc222ai5ac6397f3471fc44@mail.gmail.com>
In-Reply-To
<20090219034504.GA19862@coredump.intra.peff.net>
On Wed, Feb 18, 2009 at 10:45 PM, Jeff King <peff@peff.net> wrote:
Show 5 quoted lines
> But here we stick the "remotes/" head on, since we are showing both
> types. But the right hand side of the symref doesn't get the same
> treatment.
>
> I don't think it's a big deal, but I wasn't sure if it was intentional,

It was intentional on my part. I thought appending it a second time was redundant, and the remotes/ prefix on the LHS is just their to distinguish remote branches from local.

Show 10 quoted lines
> I also had a brief thought that reprinting the <remote> is pointless.
> That is, printing
>
>  origin/HEAD -> master
>
> shows what is happening with less text due to the context (i.e., we
> already know we are talking about remote "origin" -- and if it isn't in
> origin, we already show more). But that is probably a bad idea; that
> context is missing if you were to try to do something like "git show";
> <remote>/<branch> would work, but <branch> wouldn't.
Exactly. :-)

Thanks for the tests. If I had added them myself I wouldn't have you publicly questioning my intent. ;-)

j.
Previous: Jeff KingNext: Jeff King
Message 9 of 12 in “Avoid segfault with 'git branch' when the HEAD is detached”
  1. Avoid segfault with 'git branch' when the HEAD is detachedJohannes Schindelin, Feb 18, 2009
  2. Jay SoffianFeb 18, 2009
  3. Jeff KingFeb 19, 2009
  4. Johannes SchindelinFeb 19, 2009
  5. Jeff KingFeb 19, 2009
  6. Jeff KingFeb 19, 2009
  7. 1/2 add basic branch display testsJeff King, Feb 19, 2009
  8. Jeff KingFeb 19, 2009
  9. Jay SoffianFeb 19, 2009
  10. Jeff KingFeb 19, 2009
  11. 2/2 branch: clean up repeated strlenJeff King, Feb 19, 2009
  12. Johannes SchindelinFeb 19, 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.