Skip to contentSkip to conversation

path-restricted gitk with tags showing up?

DISCUSSION Olivier Galibert 3 participants 4 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

I'd like to do a (f.i) gitk include/sound/asound.h but still see the commits which are in the DAG delimited by the alsa commits and have tags attached. The aim is to know what changes where in what released kernel version. Is there a way to do that?

OG.

#1 lore raw
Quoted 4 lines · On Tue, 1 Aug 2006 19:42:10 +0200 Olivier Galibert wrote:

I'd like to do a (f.i) gitk include/sound/asound.h but still see the commits which are in the DAG delimited by the alsa commits and have tags attached. The aim is to know what changes where in what released kernel version. Is there a way to do that?

Since git-1.4.0 gitk shows this information in the "Follows:" and "Precedes:" lines for each commit (you need to enable "Display nearby tags" in preferences). In your case, the "Precedes" line will show the first kernel version which included the change.

Note that loading this information takes some time; gitk tries to load it in background, so you may see empty "Follows" and "Precedes" lines for some time.

#2 lore raw
Quoted 7 lines · Sergey Vlasov
Quoted 4 lines · On Tue, 1 Aug 2006 19:42:10 +0200 Olivier Galibert wrote:

I'd like to do a (f.i) gitk include/sound/asound.h but still see the commits which are in the DAG delimited by the alsa commits and have tags attached. The aim is to know what changes where in what released kernel version. Is there a way to do that?

Quoted 8 lines

Since git-1.4.0 gitk shows this information in the "Follows:" and "Precedes:" lines for each commit (you need to enable "Display nearby tags" in preferences). In your case, the "Precedes" line will show the first kernel version which included the change.

Note that loading this information takes some time; gitk tries to load it in background, so you may see empty "Follows" and "Precedes" lines for some time.

Works rather well, thanks.

OG.

#3 lore raw
In reply to Olivier Galibert
Quoted 5 lines · Olivier Galibert

I'd like to do a (f.i) gitk include/sound/asound.h but still see the commits which are in the DAG delimited by the alsa commits and have tags attached. The aim is to know what changes where in what released kernel version. Is there a way to do that?

Not right now. It should be fairly easy to add a flag that marks all tagged commits (or, indeed, anything that is reachable from .git/refs/) as "TREECHANGE" so that they aren't optimized away, but we don't have anything like that right now at least.

A small exercise for somebody who wants to get into git, perhaps? Hint, hint..

Linus