Thread (1 message) 1 message, 1 author, 2016-06-15

Re: That improved git-gui blame viewer..

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:43:16

Josef Weidendorfer [off-list ref] writes:
On Wednesday 13 June 2007, Josef Weidendorfer wrote:
quoted
While without "-z", log_tree_diff immediatly returns
because "opt->diff" is 0, in the case of "-z",
the tree differences are fully done even not used at all ?!
I wished git-gui and gitk would be better integrated for
history/blame browsing; I also missed a text search functionality
in the blame view of git-gui.

Neverless...

opt->diff is set to 1 in setup_revisions() whenever
diff_opt_parse() parses an option. And "-z" is
parsed in diff_opt_parse().

In cd2bdc, Linus write in the commit log

 - make setup_revision set a flag (revs->diff) if the diff-related
   arguments were used. This allows "git log" to decide whether it wants
   to show diffs or not.

So why is "-z" regarded as tree-diff related, leading to calculating diffs?
Because of the thinko in that commit.  He obviously meant
things like --stat, -p and its friends.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help