git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Git Submodule hooks someone else may find of use
@ 2009-07-02 15:20 Tim Harper
  0 siblings, 0 replies; only message in thread
From: Tim Harper @ 2009-07-02 15:20 UTC (permalink / raw)
  To: git

A while ago I started a thread discussing my desires to have
submodules automatically update when I switch branches or pull.  This
I desired to occur only if my submodule revision conformed with the
pointer recorded in the superproject's previous HEAD.  In other words,
if my submodule showed as "modified", and I switch branches, I would
desire that this "modified" state persist exactly the same way an
uncommitted change would.

I've created a local git hook to support this behavior.  If it
interests you, you may find it here, under
'git-post-checkout-submodules'.

http://github.com/timcharper/git-helpers/tree/master

Installation instructions are found at the top of the script.

Feedback welcome.

Tim

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-07-02 15:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-02 15:20 Git Submodule hooks someone else may find of use Tim Harper

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 NNTP newsgroup(s).