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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Sep 1, 2013 at 3:41 AM, Eric Sunshine <sunshine@xxxxxxxxxxxxxx> wrote:
> On Sun, Sep 1, 2013 at 4:26 AM, Felipe Contreras
> <felipe.contreras@xxxxxxxxx> wrote:

>> +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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]