threads / discuss / 4340

gitk highlighting descendents/ancestors

Subject: gitk highlighting descendents/ancestors

## tl;dr

2 messages between May 29, 2006 and May 29, 2006.

replies: 1people: 2as markdown or json

Paul Mackerras· May 29, 2006, 12:35 UTC · lore

I have implemented a feature in gitk (on the "new" branch) where it can highlight the commits that are, or are not, descendents or ancestors of the selected commit. For now it is invoked via a drop-down menu. Does this look useful to people?

At the moment, if you select "Not descendent" then the selected commit and all the commits below it will be highlighted (since they can't be descendents of the selected commit). Similarly if you select "Not ancestor" then the selected commit and all commits above it are highlighted. That's technically correct but doesn't seem very useful; maybe I should suppress those highlights.

Also, whatever matches the string put in the "Find" field will be highlighted. I have taken out the "Files" and "Pickaxe" options in the Find function, and put the pickaxe function into a new drop-down menu for the highlighting function. I have code ready to go for shift-up and shift-down to move to the previous/next highlighted row, once Junio applies my tiny patch to builtin-diff-tree.c.

Paul.
Matthias Kestenholz· May 29, 2006, 12:55 UTC · re: Paul Mackerras · lore

Re: gitk highlighting descendents/ancestors

Hi,
* Paul Mackerras (paulus@samba.org) wrote:
Show 5 quoted lines
> I have implemented a feature in gitk (on the "new" branch) where it
> can highlight the commits that are, or are not, descendents or
> ancestors of the selected commit.  For now it is invoked via a
> drop-down menu.  Does this look useful to people?
> 

Yes, this is very useful for me. I have a complicated history graph because I manage the codebase for several websites with one git repository. It gets very hard to follow the colored lines in gitk when there are many merges of feature branches.

The most useful feature for me is probably the "ancestor" view; "not ancestor" could also be interesting if I wanted to visualize which feature branches were already merged and which are not.

Thanks, Matthias

← back to recent threads