| commit | bf5a55ac5eaef91e87470d704613e6942500a810 | [log] [tgz] |
|---|---|---|
| author | Johannes Sixt <j6t@kdbg.org> | Fri Oct 17 18:38:11 2025 +0200 |
| committer | Johannes Sixt <j6t@kdbg.org> | Fri Oct 17 18:38:11 2025 +0200 |
| tree | fb5b203ee09d1f78d8a4455a5caffdc4980b942c | |
| parent | 8b5636a57ff078ac368f246f813b156552a0726c [diff] |
gitk: persist position and size of the Tags and Heads window The Tags and Heads window always opens at a default position and size, requiring users to reposition it each time. Remember its geometry between sessions in the config file as `geometry(showrefs)`. Note that the existing configuration is sourced in proc savestuff right before new settings are written. This makes the old settings available as local variables(!) and does not overwrite the current settings. Since we need access to the global geometry(showrefs), it is necessary to unset the local variable. Helped-by: Michael Rappazzo <rappazzo@gmail.com> Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Gitk is a graphical Git repository browser. It displays the commit history of a Git repository as a graph, showing the relationships between commits, branches, and tags.
To view the history of the current repository:
gitk
To view the history of specific files or directories:
gitk path/to/file gitk path/to/directory
To view a specific branch or range of commits:
gitk branch-name gitk v1.0..v2.0
For more usage examples and options, see the gitk manual.
Gitk is a Tcl/Tk application. It requires Tcl/Tk to be installed on your system.
Gitk can be run from the source directory without installation:
./gitk
This allows for quick testing of changes.
To install system-wide, you can use either make or meson:
# Install to default location ($HOME/bin) make install # Install to system-wide location sudo make install prefix=/usr/local # Install to custom location make install prefix=/opt/gitk # Using Meson meson setup builddir meson compile -C builddir meson install -C builddir
Both build systems will handle setting the correct Tcl/Tk interpreter path and installing translation files.
Contributions are welcome! The preferred method for submitting patches is via email to the Git mailing list, as this allows for more thorough review and broader community feedback. However, GitHub pull requests are also accepted.
All commits must be signed off (use git commit --signoff) and should have commit messages prefixed with gitk:.
Send patches to git@vger.kernel.org and CC j6t@kdbg.org. See the Git project's patch submission guidelines for detailed instructions on creating and sending patches.
Gitk is distributed under the GNU General Public License, either version 2, or (at your option) any later version.