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

Re: [PATCH 2/6] Add concept of 'publish' branch

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Sep 1, 2013, 11:20 UTC
Message-ID
<CAMP44s1x=7k3XTPSzHFk4gtJBY301mVbsQWammsp3HpdSzp2CA@mail.gmail.com>
In-Reply-To
<CAPig+cQUiSC4r01nSqRnrDj230x=tUK4dGUXhWrUitSAVKZ-Wg@mail.gmail.com>
On Sun, Sep 1, 2013 at 3:41 AM, Eric Sunshine <sunshine@sunshineco.com> wrote:
> On Sun, Sep 1, 2013 at 4:26 AM, Felipe Contreras
> <felipe.contreras@gmail.com> wrote:
Show 9 quoted lines
>> +static void setup_push_simple(struct remote *remote, struct branch *branch,
>> +                               int triangular)
>> +{
>> +       if (branch->push_name) {
>> +               struct strbuf refspec = STRBUF_INIT;
>> +               strbuf_addf(&refspec, "%s:%s", branch->name, branch->push_name);
>> +               add_refspec(refspec.buf);
>
> strbuf_release(&refspec);
Actually no, wee need that buffer. See setup_push_upstream().
-- 
Felipe Contreras
Previous: Eric SunshineNext: Felipe Contreras
Message 5 of 11 in “Introduce publish tracking branch”
  1. 0/6 Introduce publish tracking branchFelipe Contreras, Sep 1, 2013
  2. 1/6 push: trivial reorganizationFelipe Contreras, Sep 1, 2013
  3. 2/6 Add concept of 'publish' branchFelipe Contreras, Sep 1, 2013
  4. Eric SunshineSep 1, 2013
  5. Felipe ContrerasSep 1, 2013
  6. 3/6 branch: allow configuring the publish branchFelipe Contreras, Sep 1, 2013
  7. 4/6 t: branch add publish branch testsFelipe Contreras, Sep 1, 2013
  8. 5/6 push: add --set-publish optionFelipe Contreras, Sep 1, 2013
  9. 6/6 branch: display publish branchFelipe Contreras, Sep 1, 2013
  10. Matthieu MoySep 2, 2013
  11. Felipe ContrerasSep 2, 2013

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.