pkg.soopen package index

brew / rank 10649

Install git-when-merged with Homebrew, MacPorts, Nix

Find where a commit was merged in git. Version 1.2.1 via Homebrew; verified 2026-06-18. Also installable with nix: nix profile install nixpkgs#git-when-merged.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install git-when-merged

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install git-when-merged

MacPorts ports tree · devel/git-when-merged/Portfile · source: api.github.com

Linux

Nixverified · 92%
nix profile install nixpkgs#git-when-merged

nixpkgs package indexes · pkgs/by-name/gi/git-when-merged/package.nix · source: api.github.com

overview

Package summary

Find where a commit was merged in git

Commands and aliases

  • git-when-merged

history

Project history and usage

git-when-merged is a Python Git extension that finds the merge commit that first brought a given commit into a branch.

Project history

Michael Haggerty created the repository in February 2013. The README says the command was originally based on a Stack Overflow suggestion for finding the merge commit that included a specific commit.

The project grew around Git-history forensics. The 2016 releases added recursive merge tracing, log output, commit-only output, branch display, and describe-based options. A 2022 release added the packaging work needed for PyPI distribution.

Adoption history

The README documents several installation paths: pipx from PyPI, a local virtual environment, cloning the repository onto PATH, and Homebrew for macOS users. Package-manager metadata also lists distribution through Homebrew, MacPorts, and Nix.

How it is used

Practitioners use git when-merged during code archaeology, release maintenance, and regression tracking. It walks first-parent history to answer when and why a commit entered a branch, with options to show logs, diffs, merge ranges, patterns, and configured reference groups.

Why package nerds care

The tool is a package-nerd favorite because it wraps a subtle Git graph question in a memorable subcommand, making first-parent merge analysis scriptable and repeatable.

Timeline

  • 2013: Repository created.
  • 2016: v1.1 and v1.2 releases expanded merge-analysis options.
  • 2022: v1.2.1 added PyPI release packaging.

Related projects

  • git log --first-parent, git describe, pipx, PyPI, Homebrew

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 bottle metadata was recorded.

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-when-mergedexecutableindexed executableDiscovered from the local executable index.

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-08-03
manager version1.2.1
manager updated2026-06-18
local dataunknown
upstreamnot available
latest detectednot detected
  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:git-when-merged
Version1.2.1
Package managerHomebrew
Homepagehttps://github.com/mhagger/git-when-merged
Repositoryhttps://github.com/mhagger/git-when-merged
Last updated2026-06-18T09:25:51+09:00
Pulseupdated
Bottlenot recorded
Servicenone declared

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

git-when-merged

nix profile install nixpkgs#git-when-merged
  • normalized package name match
  • Matched by: Git When Merged
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/gi/git-when-merged/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
MacPorts95%

git-when-merged

sudo port install git-when-merged
  • normalized package name match
  • Matched by: Git When Merged
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/git-when-merged/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

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
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • pkg.so package database
  • pkgdb category and tag curation