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

Re: [PATCH] git-branch --with=commit

From
JHJan Hudec <bulb@ucw.cz>
Date
Nov 15, 2007, 17:27 UTC
Message-ID
<20071115172726.GA4525@efreet.light.src>
In-Reply-To
<4732D440.2020504@op5.se>
On Thu, Nov 08, 2007 at 10:17:52 +0100, Andreas Ericsson wrote:
Show 20 quoted lines
> Junio C Hamano wrote:
>> Johannes Sixt <j.sixt@viscovery.net> writes:
>>
>>> Junio C Hamano schrieb:
>>
>>>> With this patch, I could do this to find out which topic
>>>> branches already contain the faulty commit:
>>>>
>>>>     $ git branch --with=maint^ | grep /
>>>>       xx/maint-fix-foo
>>> It'd be helpful if you could construct the example in this commit
>>> message such that you don't need the "grep /" here; otherwise, the
>>> reader doesn't know which part of the effect is hidden by the grep.
>>
>> Yeah, in the example sequence, I think only maint itself and
>> xx/maint-fix-foo are shown, so there is no need for grep.
>
> And "maint" could certainly be stripped by the code itself, since the
> user can reasonably be expected to know that plain maint will have
> everything maint^ has.
DWIDNS (Do what I did not say).

Normally one would expect 'git branch --with=maint^' and 'git branch --with=$(git ref-parse maint^)' to be exactly the same. Alas, with your suggestion, they would not.

-- 
						 Jan 'Bulb' Hudec <bulb@ucw.cz>
Previous: Andreas Ericsson
Message 9 of 9 in “git-branch --with=commit”
  1. git-branch --with=commitJunio C Hamano, Nov 7, 2007
  2. Jakub NarebskiNov 7, 2007
  3. Johannes SchindelinNov 8, 2007
  4. Junio C HamanoNov 8, 2007
  5. Johannes SchindelinNov 8, 2007
  6. Johannes SixtNov 8, 2007
  7. Junio C HamanoNov 8, 2007
  8. Andreas EricssonNov 8, 2007
  9. Jan HudecNov 15, 2007

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.