threads / discuss / 35551

prevent gitk collapsing tree view when viewing a different commit?

Subject: prevent gitk collapsing tree view when viewing a different commit?

## tl;dr

3 messages between Dec 19, 2013 and Dec 19, 2013.

replies: 2people: 2as markdown or json

Adam Spiers· Dec 19, 2013, 15:15 UTC · lore
Hi all,

If I launch gitk, switch the lower right pane from Patch view mode to Tree view, expand a few directories, and then changing to viewing a different commit, the tree automatically collapses again. This is really annoying when trying to view changes to the tree structure over time; is there any way to stop it, or would it be an easy tweak to the code for someone familiar with it? I had a look at the code but could hardly understand any of it :-/

Thanks, Adam

Marc Branchaud· Dec 19, 2013, 18:57 UTC · re: Adam Spiers · lore

Re: prevent gitk collapsing tree view when viewing a different commit?

On 13-12-19 10:15 AM, Adam Spiers wrote:
Show 9 quoted lines
> Hi all,
> 
> If I launch gitk, switch the lower right pane from Patch view mode to
> Tree view, expand a few directories, and then changing to viewing a
> different commit, the tree automatically collapses again.  This is
> really annoying when trying to view changes to the tree structure over
> time; is there any way to stop it, or would it be an easy tweak to the
> code for someone familiar with it?  I had a look at the code but could
> hardly understand any of it :-/

What I would really like is that if I have a file selected in Patch view, then that file is displayed when I switch to Tree view, and vice-versa.

Unfortunately such a change is beyond my Tcl skills.
		M.
Adam Spiers· Dec 19, 2013, 19:04 UTC · re: Marc Branchaud · lore

Re: prevent gitk collapsing tree view when viewing a different commit?

On Thu, Dec 19, 2013 at 01:57:43PM -0500, Marc Branchaud wrote:
Show 11 quoted lines
> On 13-12-19 10:15 AM, Adam Spiers wrote:
> > If I launch gitk, switch the lower right pane from Patch view mode to
> > Tree view, expand a few directories, and then changing to viewing a
> > different commit, the tree automatically collapses again.  This is
> > really annoying when trying to view changes to the tree structure over
> > time; is there any way to stop it, or would it be an easy tweak to the
> > code for someone familiar with it?  I had a look at the code but could
> > hardly understand any of it :-/
> 
> What I would really like is that if I have a file selected in Patch view,
> then that file is displayed when I switch to Tree view, and vice-versa.
Yes, that would be fantastic!
> Unfortunately such a change is beyond my Tcl skills.
Mine too :-/

← back to recent threads