From: Martin Langhoff Date: Fri, 28 Oct 2005 01:08:13 GMT Subject: Re: [PATCH gitweb] Visually indicating patch size with horizontal bars Message-ID: <46a038f90510271808n36a75676y9f50109db43b5ab@mail.gmail.com> In-Reply-To: <20051028005029.GA2654@pe.Belkin> On 10/28/05, Chris Shoemaker wrote: > So, what's the best way to detect merges? Maybe see if > 'git-cat-file commit $hash | grep ^parent | wc -l' is greater than 1? > > > That's where caching might save your *ss. > > Ok, but that cache would live inside GIT_DIR an be shared with gitk, > right? gitweb should have any caches it wants, regardless of gitk, methinks. I very rarely run gitk and gitweb on the same repo. The repos where I run gitk are all development repos, on my desktop machine or laptop. gitweb runs only on the webserver where I publish those... So it may be practical to have a common cache format, but unlikely that both programs will use the same cached data in practice... martin