git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [Query] Separate hooks for Git worktrees
@ 2017-11-09 10:58 Viresh Kumar
  2017-11-09 19:14 ` Stefan Beller
  0 siblings, 1 reply; 6+ messages in thread
From: Viresh Kumar @ 2017-11-09 10:58 UTC (permalink / raw)
  To: Git Mailing List, Junio C Hamano; +Cc: Vincent Guittot

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 changing to a upstream kernel branch and eventually
by mistake I may end up sending patch with Change-Id to upstream
kernel as well. And I want to avoid that.

I am looking at ways to make this configuration work for me by
applying the hook only for Android branches.

I tried using the "git worktrees" command to create a separate
linked tree for my android branch, but it doesn't have a .git directory
but just a file linking to the main repository.

Any idea how I can get around this problem without having separate
repositories for kernel and android ?

Thanks in advance.

--
viresh

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-11-13  3:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-09 10:58 [Query] Separate hooks for Git worktrees Viresh Kumar
2017-11-09 19:14 ` Stefan Beller
2017-11-10  3:38   ` Viresh Kumar
2017-11-10  5:00   ` Junio C Hamano
2017-11-10 18:00     ` Stefan Beller
2017-11-13  3:16       ` Viresh Kumar

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).