Re: [Query] Separate hooks for Git worktrees

2017-11-12 Thread Viresh Kumar
On 10-11-17, 10:00, Stefan Beller wrote: > Well it is the same project with different upstream workflows. > For example I would imagine that Viresh wants to cherry-pick > from one branch to another, or even send the same patch > (just with different commit messages, with or without the > ChangeId)

Re: [Query] Separate hooks for Git worktrees

2017-11-10 Thread Stefan Beller
On Thu, Nov 9, 2017 at 9:00 PM, Junio C Hamano wrote: > Stefan Beller writes: > >> We have no worktree specific config yet, though patches for >> this were floated on the mailing list. >> >> Though recent versions of git learned to conditionally include >>

Re: [Query] Separate hooks for Git worktrees

2017-11-09 Thread Junio C Hamano
Stefan Beller writes: > We have no worktree specific config yet, though patches for > this were floated on the mailing list. > > Though recent versions of git learned to conditionally include > config files. (look for includeIf in man git-config), which I think > could be

Re: [Query] Separate hooks for Git worktrees

2017-11-09 Thread Viresh Kumar
On 09-11-17, 11:14, Stefan Beller wrote: > The proposed approach above might be hacky but sounds as if > it should work? Yeah its hacky for sure, but it solved my problem. Thanks for your help Stefan :) -- viresh

Re: [Query] Separate hooks for Git worktrees

2017-11-09 Thread Stefan Beller
On Thu, Nov 9, 2017 at 2:58 AM, Viresh Kumar wrote: > Hi, > > I have a typical use case, where I am using the same > repository for both Android and Linux kernel branches. > > Android needs us to keep a special hook "commit-msg" > which adds a "Change-Id" to every commit

[Query] Separate hooks for Git worktrees

2017-11-09 Thread Viresh Kumar
Hi, I have a typical use case, where I am using the same repository for both Android and Linux kernel branches. Android needs us to keep a special hook "commit-msg" which adds a "Change-Id" to every commit we create. While this works fine with Android, the behavior doesn't change by simply