git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Check for differents trees

From
MCMarco Costalba <mcostalba@yahoo.it>
Date
Nov 10, 2005, 06:35 UTC
Message-ID
<20051110063502.44633.qmail@web26302.mail.ukl.yahoo.com>
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
Message 1 of 1 in “Re: Check for differents trees”
  1. Marco CostalbaNov 10, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.