From: Marco Costalba Date: Thu, 10 Nov 2005 06:35:02 GMT Subject: Re: Check for differents trees Message-ID: <20051110063502.44633.qmail@web26302.mail.ukl.yahoo.com> Junio C Hamano wrote: >Marco Costalba writes: > >> as you said, the speed is almost the same but your way is clearly better. > > >How often do you do this --diff-filter=AD and why? > >If it is a common enough operation, we could add a specific hack >to stop feeding the diff machinery with unwanted kind of changes >when diff-filter is set and none of -B/-C/-M are used. That >_might_ speed things up for you. > Sorry for late answer byt I was off line a few days. Thanks, It will be great. I have impemented a tree viewer for qgit. Tree view is updated when user browses through revisions. Loading the file names of a given tree, altough only for the open directories, is an expensive operation. So I check for different files anytime the user select a new revision and the tree viewer is open, I use this test to skip tree reloading if trees have the same files. I have made some speed test with git-diff-tree -r --name-status --diff-filter=AD sha1 sha2 Marco __________________________________ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com