threads / discuss / 2422

Re: Check for differents trees

Subject: Re: Check for differents trees

## tl;dr

One message between Nov 10, 2005 and Nov 10, 2005.

replies: 0people: 1as markdown or json

Marco Costalba· Nov 10, 2005, 06:35 UTC · lore
Junio C Hamano wrote:
Show 12 quoted lines
>Marco Costalba <mcostalba@yahoo.it> 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

← back to recent threads