Repository navigation
feat!: install with Homebrew, update dependencies and fix multiple bugs - #61
Merged
Merged
Conversation
- comfy-table 8.0.1, insta 1.49 and a lockfile refresh - rust-version = "1.99", so the toolchain requirement is enforced instead of only stated in the README - strum's `derive` feature instead of a separate strum_macros dependency
Fixes: - scan: with --subdir, a checkout that cannot be opened is reported under the project's name rather than the subdir's, which was the same for all - scan: a symlinked repository is shown under the link's name instead of its absolute target path, by taking the shown path from the walk - gitinfo: an unborn branch keeps its full name (`feature/x`, not `x`) - gitinfo: a detached HEAD is no longer local-only; the Local column shows `-`, the summary stops counting it and JSON gains `is_detached` - gitinfo: `--fetch` runs git with GIT_TERMINAL_PROMPT=0, so the parallel fetches fail instead of blocking on interleaved credential prompts - cli: failed repositories are listed on stderr in --json mode as well - status: the Detached description no longer claims to cover branches without an upstream, which are Unpublished Tests: - fix clippy 1.99's assert_is_empty lint and the macOS temp-path failures - assert on the output of tests that only ran code, replace assertions that could not fail, and drop duplicated tests - no network access, no git CLI for fixtures, and no dependence on the machine's init.defaultBranch - cover --fetch behind counts, --ff on diverged, conflicting and detached repositories, fetching from a worktree, and nested and symlinked repositories
The release workflow renders Formula/git-statuses.rb from the archives it built with scripts/homebrew_formula.sh and pushes it to the tap with the HOMEBREW_TAP_DEPLOY_KEY deploy key. Prereleases are skipped. The workflow is modernized along the way: dtolnay/rust-toolchain instead of the archived actions-rs, $GITHUB_OUTPUT instead of set-output, --locked builds instead of a `cargo update` at release time, no OpenSSL install on macOS where it was unused, and current action versions. Closes #50
crate-ci/typos and cargo-bins/cargo-binstall ran from their default branches. Both workflows now also default to a read-only token, like the release workflow already does.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #50
Warning
Breaking: building needs Rust 1.99, and a detached HEAD is reported differently. See Compatibility below.
Homebrew
brew install bircni/tap/git-statusesinstalls the prebuilt release binary (macOS Apple Silicon and Intel, Linux x86_64) together with bash, zsh and fish completions.scripts/homebrew_formula.shrenders the formula from the release archives and their SHA-256 sums. It fails when an archive is missing, so a tag that does not matchCargo.tomlcannot publish a broken formula.homebrewjob in the release workflow pushes it tobircni/homebrew-tapwith theHOMEBREW_TAP_DEPLOY_KEYdeploy key, the same way aitrack updates its cask. Prereleases are skipped. The deploy key and the secret are already configured.Fixes
--subdircheckout, for every projectfeature/xx (no commits)feature/x (no commits)local-only, counted as a local-only branch-, not counted; JSON hasis_detached--fetchgit fetchcan prompt for credentials on the terminal at onceGIT_TERMINAL_PROMPT=0: they fail with the existing fetch warning--jsonDetachedclaims to cover branches without an upstreamTest suite
mainis red on Rust 1.99: clippy's newassert_is_emptylint fails CI, and two bare-repository tests fail on macOS because they pass a non-canonical temp path. Beyond fixing those:init.defaultBranch--fetchbehind counts,--ffon diverged, conflicting and detached repositories, fetching from a worktree, and nested and symlinked repositoriesDependencies and CI
derivefeature replaces the separate strum_macros dependencyrust-version = "1.99"dtolnay/rust-toolchaininstead of the archivedactions-rs,$GITHUB_OUTPUTinstead ofset-output,--lockedbuilds instead of acargo updateat release time, no unused OpenSSL install on macOS, current action versionstyposandcargo-binstallpinned to releases instead of running frommaster/main, read-only token by default--help(it lacked--ffand--json), and the table's actual columnsCompatibility
cargo installon an older toolchain stops with a version error.-instead oflocal-onlyand no longer counts towards "Local-only branches".is_detachedfield.--fetchno longer lets git prompt for HTTPS credentials. Credential helpers and the SSH agent still apply.The Commits column still walks each repository's full history. On gitea (21.8k commits) that is about 0.14 s of a 0.21 s run, which does not justify dropping a default column.