Repository navigation
0.15
Gittan 0.15.140, an automated build of the latest source (build 140).
Changes
Added
- A Project page, the sidebar's Project row and View > Project (Cmd+Option+7, Ctrl+Shift+7 elsewhere), shows what the repository is as a project, each kind in a section of its own with what only that kind has. A Lazarus project shows its build modes, each with what it builds (the output, the platform and widgetset, the optimization, the debug info) and a Build button, and its packages with where each comes from: a package file in the repository, a submodule at a tag or commit, Lazarus itself, or nowhere, which a clone then has to install, and which submodules moved since the last tag. A Rust crate shows its edition, workspace, features and binaries (with a Run button), a Go module its Go version, toolchain and replace lines, a Node package its package manager (with an Install button), engines and workspaces, a Python project the Python it requires, its build backend and the programs it installs (with a Run button). The kinds are found from the files, or picked with the button at the top right of the page when the files do not tell it, kept per repository; the Commands page follows the pick. For every kind, the file that told it, the project's version, and its dependencies with what the manifest asks for and what the lock file resolved it to (Cargo.lock, package-lock.json, yarn.lock, pnpm-lock.yaml, uv.lock, poetry.lock, pdm.lock), the development, build and other groups under their own headings, each name a link to the package on its registry. The dependencies are compared with those at the tag nearest HEAD (the one
git describenames): the heading says how many changed since it, and each row says added, removed or the old version → the new, so a release's dependency changes are read without opening a lock file's diff. Under them the checks worth a warning, with Add to .gitignore where that settles it, which also takes the files out of the index: a Lazarus session file (.lps), lib/ or backup/ committed; node_modules/, target/, a virtual environment or compiled bytecode committed; no lock file for a package.json, no go.sum, a binary crate's Cargo.lock not committed. - The Commands page lists the commands of the project's own tools, told by the files at the root: cargo build, run, test, check, clippy, fmt and doc for a Cargo.toml, go build, run, test, vet and fmt for a go.mod, install, test, lint, fmt and typecheck for a pyproject.toml, setup.py or requirements.txt (through uv, poetry or pdm when their lock file is there, pytest, ruff, mypy, tox and nox when the project names them), and lazbuild for each build mode of a Lazarus .lpi (fpc for a bare .lpr), each kind under its name beside the scripts and the Makefile targets (a package.json is a kind too, Node, with no commands of its own beyond its scripts). A table of
.gittan/commands.tomlnamed as one of them gives it a shortcut, andproject = ["rust", "go"]before the tables keeps the kinds to those named,project = "none"to none. - A change can be put into the commit it belongs to, what the git absorb command does: the pill Put into Its Commit over a change in the change view (or Changes > Put Change into Its Commit...) finds the commit of this branch that last changed those lines, asks, and folds the change into it, and Commit > Put Changes into Their Commits... lists every change of the ticked files with its commit, or why it cannot be placed, and puts the ticked ones in at once. Each goes in as a fixup commit that a rebase folds in; what cannot be placed, a line older than the branch or a new file, stays in the work tree. Commits already pushed to the upstream, or on the default branch, are never rewritten, and Branch > Undo takes the rebase back.
- The globe at the right end of the tab bar shows your GitHub picture once GitHub has answered, with your login in its tooltip, "octocat on GitHub", and keeps it between starts. GitHub is asked when Gittan starts, so the picture and the GitHub view's lists are there before the view is first opened.
- A command in
.gittan/commands.tomlcan say more about itself.description = "..."is shown in its tooltip above what it runs.confirm = true, or a question of its own (confirm = "Remove the build folder?"), asks before it runs, from a click, its shortcut, the terminal button, Run Again or a Project page button that runs the same line.hidden = trueleaves it off the page, and in a table named as a script, a Makefile target or a project's command it hides that one, for targets that are only steps of others.runcan hold a line per system,run = { windows = "...", unix = "..." }, withmacos,linuxanddefaulttoo; a command with no line for the system it is on shows dimmed and says so. A table that names a script or target gives it its description and question as well as its key.
Changed
- A repository's own commands are written in TOML, in
.gittan/commands.toml, instead of.gittan/commands.ini, which is no longer read: rename it and write each section as a table undercommands,[commands.test]withkey = "T", andcommand =asrun = "...". A shell line can now hold quotes and run over several lines ('...'keeps a line as written,"""spans lines), and a name with a colon is quoted,[commands."build:run"]. More files go in.gittan/commands/: each.tomlthere is a section of its own on the Commands page, named after the file, and trusting the commands covers them all, so adding or changing one asks again. A file Gittan cannot read says why under its heading, with the line and column. - The sidebar has no Recent row: it opened another repository rather than a page of this one. A new tab (Cmd+T) lists the recent repositories, as File > Open Recent does.
- The settings are kept in two JSON files, settings.json for the options you pick and state.json for what Gittan remembers (the window, the tabs, the recent repositories, what you trusted), instead of gittan.ini. The settings of an earlier build are not carried over: Gittan says so once, and you pick your options again. Each file is written through a temporary file, so a crash while saving leaves the previous one, and keys Gittan does not know are kept. An extension's storage keys now tell case, as a JavaScript object's do, and may hold
=,;and[. - The Commands page groups the commands that share a name: build:run and build:test, as npm scripts are named, are listed under a heading build (with build itself first when there is one), and a Makefile's build-linux and build-win under build; the rest come first, as before. Each tile is one line, the name with its shortcut and the terminal button, and what it runs shows as its tooltip instead of under the name.
- The row that stands for the hidden lines of a diff is drawn as a row of its own instead of as text the syntax highlighting colored: a fold mark, "116 unchanged lines", the buttons ↓ 20, ↑ 20 and Show all (or Show for a short run), each lit under the mouse with a tooltip saying what it opens, and the name of the function the next change is in at the right end. The names no longer rebuild the view when they are found.
- Moving on from a large file whose syntax highlighting is still being worked out no longer waits for it to finish: the highlighting is cancelled (EControl and ATSynEdit_Ex updated).
Downloads
- Gittan-macos-silicon.dmg — macOS on Apple Silicon. The app is signed ad hoc, so macOS blocks it at first: drag it to Applications, then run
xattr -cr /Applications/Gittan.appin Terminal. - Gittan-macos-intel.dmg — macOS on Intel Macs, installed the same way. On Apple Silicon take the one above.
- Gittan-windows-x64-setup.exe — Windows x64 installer, for the current user without an administrator or for everyone; adds Open in Gittan to folders' context menu and the gittan command to the PATH. It is not signed, so SmartScreen warns: More info, then Run anyway.
- Gittan-windows-x64.zip — Windows x64 without installing. Unzip anywhere and run Gittan.exe.
- Gittan-linux-amd64.deb — Debian and Ubuntu:
sudo apt install ./Gittan-linux-amd64.deb. - Gittan-linux-x86_64.rpm — Fedora and other RPM distributions:
sudo dnf install ./Gittan-linux-x86_64.rpm(zypper installon openSUSE). - Gittan-linux-amd64.tar.gz — Linux amd64 without installing, needs GTK 3. Unpacked, it has no launcher or icon in the desktop's menu.
- Gittan-linux-arm64.deb, Gittan-linux-aarch64.rpm and Gittan-linux-arm64.tar.gz — the same for arm64 Linux, such as Raspberry Pi OS (64-bit):
sudo apt install ./Gittan-linux-arm64.deb. - Gittan-haiku-x86_64.tar.gz — Haiku (64-bit) without installing, needs Qt 6 from HaikuPorts (
pkgman install libqt6pas). Unpack anywhere and run Gittan. - Gittan-windows-arm64.zip — Windows 11 on Arm, native, without installing; built with a development version of Free Pascal (3.3.1). Unpack anywhere and run Gittan.exe.
Gittan runs the git command line tool, so git must be on your PATH.