From: Junio C Hamano Date: Mon, 24 Sep 2007 18:34:02 GMT Subject: Re: [PATCH] post-checkout hook, and related docs and tests Message-ID: <7vsl53ap5x.fsf@gitster.siamese.dyndns.org> In-Reply-To: <1190654052.6078.14.camel@beauty> "Josh England" writes: >> What's the _semantics_ you are trying to achieve? > > I'd like to get a hook that runs whenever the working dir gets > updated. The 'git-checkout otherbranch path.c' case should > run it also, so I view that as a bug. I think that _is_ INSANE. Do you run the hook for these then? $ edit path.c $ git-cat-file otherbranch:path.c >path.c Why "git checkout otherbranch path.c" should be any different?