Automic VaultAutomic Vault

brew

Install git-format-staged with Homebrew

Git command to transform staged files using a formatting command. Version 4.0.1 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install git-format-staged

local Homebrew formula metadata

overview

Package summary

Git command to transform staged files using a formatting command

Commands and aliases

  • git-format-staged

history

Project history and usage

git-format-staged is a Python Git helper that runs a formatter or linter against the staged version of files, preserving unstaged working-tree edits.

Project history

The repository began in March 2018. Its README explains the project as a response to pre-commit formatting hooks that run a formatter over working-tree files and then restage the result, a pattern that can accidentally commit unrelated unstaged edits or disrupt `git add -p` workflows.

Adoption history

git-format-staged sits in the ecosystem around Prettier, Husky, lint-staged, pre-commit, pretty-quick, and language-specific hook managers. It distinguishes itself by formatting blobs from the Git index and then attempting to patch the working tree afterward, rather than stashing user edits before formatting.

How it is used

Practitioners install it through Nix, npm, Homebrew, or by copying the script, then call it from pre-commit hooks with a formatter command that reads from stdin and writes to stdout. Typical use passes file patterns and a formatter placeholder, such as running Prettier with `--stdin-filepath` for staged JavaScript, TypeScript, or CSS files.

Why package nerds care

The package is notable because it solves a small but sharp Git-index problem without tying users to one language ecosystem. That makes it attractive for polyglot repositories and hook setups where the important boundary is Git's staged content rather than a particular formatter.

Timeline

  • 2018: The repository began with an initial commit.
  • 2018: The v1.0.0 tag established the installable Git helper.
  • Later releases: Packaging expanded across npm, Nix, and Homebrew usage paths.

Related projects

  • git-format-staged is commonly compared with lint-staged, pre-commit, pretty-quick, precise-commits, Husky, and formatter tools such as Prettier.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 1 platform targets.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
git-format-stagedcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version4.0.1
manager updated
local dataok
upstreamcurrent
latest detectedv4.0.1

https://github.com/hallettj/git-format-staged

  • infoNo package-manager update timestamp was available.low confidence

install metadata

Package metadata

Package keybrew:git-format-staged
Version4.0.1
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/git-format-staged
Homepagehttps://github.com/hallettj/git-format-staged
Repositoryhttps://github.com/hallettj/git-format-staged
Upstream docshttps://github.com/hallettj/git-format-staged#readme
LicenseMIT
Source archivehttps://github.com/hallettj/git-format-staged/archive/refs/tags/v4.0.1.tar.gz
Uses from macOSpython
Bottleavailable (on all)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namegit-format-staged
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • package relationship graph
  • package version freshness
  • package-page enrichment