* new gitk feature
@ 2006-04-26 10:59 Paul Mackerras
2006-04-26 13:57 ` Jan-Benedict Glaw
2006-04-26 15:09 ` Linus Torvalds
0 siblings, 2 replies; 5+ messages in thread
From: Paul Mackerras @ 2006-04-26 10:59 UTC (permalink / raw)
To: git
I just pushed some changes to gitk which add a new feature, the
ability to have multiple "views" of a repository. Each view is a
subgraph of the full graph. At the moment the only subgraph that you
can specify is the subgraph containing the commits that affect a
specified set of files or directories. You can switch between views
quickly, and if the currently selected commit exists in the new view
when you switch views, it is selected in the new view. There is one
view which always exists, the "All files" view. If files or
directories are specified on the command line, a "Command line" view
is automatically created and selected at startup.
Thus, for the kernel repository I can have a "PPC" view which shows
changes to arch/powerpc, include/asm-powerpc etc. When looking at a
commit in that view, I can switch to the "All files" view to see where
that commit fits in the overall history.
There is a "View" menu which contains the menu items for creating,
deleting, editing and selecting views. If you check the "Remember
this view" box, gitk will write the definition of the view to your
~/.gitk file, and it will be automatically put in the list on startup.
I plan to add various other kinds of views, for example, a view that
shows only the commits that affect a selected file (or part of a file,
perhaps), and a view that shows just the current commit together with
all the commits that have tags. (The latter will require some help
from git-rev-list. :)
Paul.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: new gitk feature
2006-04-26 10:59 new gitk feature Paul Mackerras
@ 2006-04-26 13:57 ` Jan-Benedict Glaw
2006-04-26 15:09 ` Linus Torvalds
1 sibling, 0 replies; 5+ messages in thread
From: Jan-Benedict Glaw @ 2006-04-26 13:57 UTC (permalink / raw)
To: Paul Mackerras; +Cc: git
[-- Attachment #1: Type: text/plain, Size: 795 bytes --]
On Wed, 2006-04-26 20:59:29 +1000, Paul Mackerras <paulus@samba.org> wrote:
> Thus, for the kernel repository I can have a "PPC" view which shows
> changes to arch/powerpc, include/asm-powerpc etc. When looking at a
> commit in that view, I can switch to the "All files" view to see where
> that commit fits in the overall history.
Hmm.. Neat feature for arch maintainers. An easy way to see what's
happening in the i386 tree for example :)
MfG, JBG
--
Jan-Benedict Glaw jbglaw@lug-owl.de . +49-172-7608481 _ O _
"Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg _ _ O
für einen Freien Staat voll Freier Bürger" | im Internet! | im Irak! O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: new gitk feature
2006-04-26 10:59 new gitk feature Paul Mackerras
2006-04-26 13:57 ` Jan-Benedict Glaw
@ 2006-04-26 15:09 ` Linus Torvalds
2006-04-27 23:52 ` Paul Mackerras
1 sibling, 1 reply; 5+ messages in thread
From: Linus Torvalds @ 2006-04-26 15:09 UTC (permalink / raw)
To: Paul Mackerras; +Cc: git
On Wed, 26 Apr 2006, Paul Mackerras wrote:
>
> I just pushed some changes to gitk which add a new feature, the
> ability to have multiple "views" of a repository. Each view is a
> subgraph of the full graph. At the moment the only subgraph that you
> can specify is the subgraph containing the commits that affect a
> specified set of files or directories. You can switch between views
> quickly, and if the currently selected commit exists in the new view
> when you switch views, it is selected in the new view.
This gets close to something I wanted, but at the same time falls very
short of it because the views are always shown completely disjoint.
I've wanted for a long time to have a way to _highlight_ commits. That's
actually very much a "view" thing, but it's a mode where you really see
one view, but the commits that exist in another view have a different
color (or have the commits that _don't_ exist in the other view be grayed
out).
I hope that your new "view" thing would support this notion too: instead
of having to totally switch between view, it would be wonderful if you
could have one "master view" and then use another view to "highlight".
Also, I think revision information should be part of a view. For example,
in the "highlight" case, I'd love to have the "main view" be the default
"everything", and then have some way to _highlight_ the view that is
defined by the revision pattern "v1.3.1.."
Any possibility of something light that? I'd _love_ to be able to see the
whole tree, but with things that touch certain files or things that are
newer highlighted.
(Btw, the "revision information" is also cool things like "--unpacked". I
actually use "gitk --unpacked" every once in a while, just because it's
such a cool way to say "show me everything I've added since I packed the
repo last).
Linus
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: new gitk feature
2006-04-26 15:09 ` Linus Torvalds
@ 2006-04-27 23:52 ` Paul Mackerras
2006-04-28 5:11 ` Linus Torvalds
0 siblings, 1 reply; 5+ messages in thread
From: Paul Mackerras @ 2006-04-27 23:52 UTC (permalink / raw)
To: Linus Torvalds; +Cc: git
Linus Torvalds writes:
> Any possibility of something light that? I'd _love_ to be able to see the
> whole tree, but with things that touch certain files or things that are
> newer highlighted.
That should be quite doable. How about I show the commits that are in
the highlight view in bold? That won't conflict with the existing
yellow background for commits that match the find criteria.
> (Btw, the "revision information" is also cool things like "--unpacked". I
> actually use "gitk --unpacked" every once in a while, just because it's
> such a cool way to say "show me everything I've added since I packed the
> repo last).
OK, I didn't know about --unpacked. :) I plan to add stuff to the
view definition window to allow you to select commits to
include/exclude by reachability from given commits (by head/tag/ID)
and when I do I can add a way to say --unpacked too.
Paul.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: new gitk feature
2006-04-27 23:52 ` Paul Mackerras
@ 2006-04-28 5:11 ` Linus Torvalds
0 siblings, 0 replies; 5+ messages in thread
From: Linus Torvalds @ 2006-04-28 5:11 UTC (permalink / raw)
To: Paul Mackerras; +Cc: git
On Fri, 28 Apr 2006, Paul Mackerras wrote:
> Linus Torvalds writes:
> > Any possibility of something light that? I'd _love_ to be able to see the
> > whole tree, but with things that touch certain files or things that are
> > newer highlighted.
>
> That should be quite doable. How about I show the commits that are in
> the highlight view in bold? That won't conflict with the existing
> yellow background for commits that match the find criteria.
Bold sounds good to me.
> > (Btw, the "revision information" is also cool things like "--unpacked". I
> > actually use "gitk --unpacked" every once in a while, just because it's
> > such a cool way to say "show me everything I've added since I packed the
> > repo last).
>
> OK, I didn't know about --unpacked. :) I plan to add stuff to the
> view definition window to allow you to select commits to
> include/exclude by reachability from given commits (by head/tag/ID)
> and when I do I can add a way to say --unpacked too.
It's more of a gimmick, but I find myself using it occasionally just to
decide whether it's time to repack. It falls out automatically - not
because I thought I'd ever want it, but because the --unpacked semantics
for git-rev-list are what incremental packing needed.
(Of course, sane people probably just do "git count-objects" to decide to
repack).
Linus
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-04-28 5:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-26 10:59 new gitk feature Paul Mackerras
2006-04-26 13:57 ` Jan-Benedict Glaw
2006-04-26 15:09 ` Linus Torvalds
2006-04-27 23:52 ` Paul Mackerras
2006-04-28 5:11 ` Linus Torvalds
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).