# Tool/Scripts - For maintaining different branches on a repo

3 messages from 2014-06-19 to 2014-06-27. Participants: Jagan Teki, brian m. carlson.
Thread: https://gitlist.dev/t/36965

## Jagan Teki, 2014-06-19 10:48

Subject: Tool/Scripts - For maintaining different branches on a repo
Message-ID: <CAD6G_RRxj_tHhiGxP+ehNMBewqveUbbGuLLxgnHjUt96WkC_xg@mail.gmail.com>
URL: https://gitlist.dev/e/CAD6G_RRxj_tHhiGxP%2BehNMBewqveUbbGuLLxgnHjUt96WkC_xg%40mail.gmail.com

```
Hi,

I have a single repo with different kinds of branches say 4 branches.
Developers will send a patches wrt to specific branch.

Is there any opensource tool/script that does applying patches/maintaining
the branches in repo w/o manual intervention?

thanks!
-- 
Jagan.

```

## brian m. carlson, 2014-06-20 22:30

Subject: Re: Tool/Scripts - For maintaining different branches on a repo
Message-ID: <20140620223047.GB856079@vauxhall.crustytoothpaste.net>
URL: https://gitlist.dev/e/20140620223047.GB856079%40vauxhall.crustytoothpaste.net
In-Reply-To: <CAD6G_RRxj_tHhiGxP+ehNMBewqveUbbGuLLxgnHjUt96WkC_xg@mail.gmail.com>

```
On Thu, Jun 19, 2014 at 04:18:22PM +0530, Jagan Teki wrote:
> Hi,
> 
> I have a single repo with different kinds of branches say 4 branches.
> Developers will send a patches wrt to specific branch.

I presume here that you're referring to emailed patches, or patches in
independent files, as opposed to just having branches with commits.

> Is there any opensource tool/script that does applying patches/maintaining
> the branches in repo w/o manual intervention?

If you want something that works with patches specifically, TopGit might
do what you want.  If what you're looking for is a tool that accepts
patches and automatically applies them, I'm not aware of one.  It
shouldn't be terribly difficult to script, though.

If you don't need to deal with patches and can instead deal with git
repositories, GitLab and Gitorious offer merge requests, which might
make life easier.  I have heard that GitLab is less painful to set up.

-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187

```

## Jagan Teki, 2014-06-27 06:27

Subject: Re: Tool/Scripts - For maintaining different branches on a repo
Message-ID: <CAD6G_RQ9KpW4i5BPRNrSWmR5oZn0eAZsvM4S_erCXx0+Y7Oj2Q@mail.gmail.com>
URL: https://gitlist.dev/e/CAD6G_RQ9KpW4i5BPRNrSWmR5oZn0eAZsvM4S_erCXx0%2BY7Oj2Q%40mail.gmail.com
In-Reply-To: <20140620223047.GB856079@vauxhall.crustytoothpaste.net>

```
On Sat, Jun 21, 2014 at 4:00 AM, brian m. carlson
<sandals@crustytoothpaste.net> wrote:
> On Thu, Jun 19, 2014 at 04:18:22PM +0530, Jagan Teki wrote:
>> Hi,
>>
>> I have a single repo with different kinds of branches say 4 branches.
>> Developers will send a patches wrt to specific branch.
>
> I presume here that you're referring to emailed patches, or patches in
> independent files, as opposed to just having branches with commits.

Let me clear my requirement:

I'm using Thunderbird,  the tool will pick the patches with _defined_
subject prefix
and apply the respective branches as I inputting.

Please let me know if you still have any clarity.

>
>> Is there any opensource tool/script that does applying patches/maintaining
>> the branches in repo w/o manual intervention?
>
> If you want something that works with patches specifically, TopGit might
> do what you want.  If what you're looking for is a tool that accepts
> patches and automatically applies them, I'm not aware of one.  It
> shouldn't be terribly difficult to script, though.
>
> If you don't need to deal with patches and can instead deal with git
> repositories, GitLab and Gitorious offer merge requests, which might
> make life easier.  I have heard that GitLab is less painful to set up.
>
> --
> brian m. carlson / brian with sandals: Houston, Texas, US
> +1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
> OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187


thanks!
-- 
Jagan.

```
