git/list[1] front-page[2] threads[3] people[4] search[5] about
 

new gitk feature

From
Paul Mackerras <paulus@samba.org>
Date
Apr 26, 2006, 10:59 UTC
Message-ID
<17487.21137.344427.173131@cargo.ozlabs.ibm.com>

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.
Next: Jan-Benedict Glaw
Message 1 of 5 in “new gitk feature”
  1. Paul MackerrasApr 26, 2006
  2. Jan-Benedict GlawApr 26, 2006
  3. Linus TorvaldsApr 26, 2006
  4. Paul MackerrasApr 27, 2006
  5. Linus TorvaldsApr 28, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.