From: Viresh Kumar <viresh.kumar@linaro.org>
To: Git Mailing List <git@vger.kernel.org>,
Junio C Hamano <gitster@pobox.com>
Cc: Vincent Guittot <vincent.guittot@linaro.org>
Subject: [Query] Separate hooks for Git worktrees
Date: Thu, 9 Nov 2017 16:28:09 +0530 [thread overview]
Message-ID: <CAKohponsPQC6qTw99+xh1RSu0bZNDSo5TbbZZcYmup3NOW6QmA@mail.gmail.com> (raw)
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
next reply other threads:[~2017-11-09 10:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-09 10:58 Viresh Kumar [this message]
2017-11-09 19:14 ` [Query] Separate hooks for Git worktrees 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAKohponsPQC6qTw99+xh1RSu0bZNDSo5TbbZZcYmup3NOW6QmA@mail.gmail.com \
--to=viresh.kumar@linaro.org \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=vincent.guittot@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).