Query on branches

9 views
Skip to first unread message

Ashwini

unread,
Apr 11, 2017, 3:49:00 AM4/11/17
to GitLab
Hi,

could you please suggest any way to achieve the below requirements in gerrit through any hooks ?

1)  we have a file a.c in branch A, when every it gets changed it should be updated in branch B as well.

 

2)  file a.c in 2 different directories of same branch, if we touch a.c in one directory, other directory a.c also should get updated.


Thanks

Ashwini

Aleksey Tsalolikhin

unread,
Apr 11, 2017, 6:49:19 AM4/11/17
to gitl...@googlegroups.com
On Tue, Apr 11, 2017 at 12:48 AM, Ashwini <ashu.r...@gmail.com> wrote:
Hi,

could you please suggest any way to achieve the below requirements in gerrit through any hooks ?

1)  we have a file a.c in branch A, when every it gets changed it should be updated in branch B as well.  ...


Hi, Ashwini.

I see you've already posted about this to the Repo and Gerritt Google Group (https://groups.google.com/forum/#!topic/repo-discuss/hdP6w-vn6EE)  

However you should be able to do this with Git Hooks -- read up on Git Hooks at http://githooks.com/

Best,
Aleksey


-- 
Need training on Git or GitLab?  Email trai...@verticalsysadmin.com.
Reply all
Reply to author
Forward
0 new messages