# git-when-merged を Homebrew, MacPorts, Nix でインストール

git-when-merged のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:git-when-merged
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install git-when-merged
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install git-when-merged
```

  証拠: MacPorts ports tree: devel/git-when-merged/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#git-when-merged
```

  証拠: 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

## パッケージ情報

- **パッケージキー:** brew:git-when-merged
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/git-when-merged>
- **バージョン:** 1.2.1
- **ソース概要:** Find where a commit was merged in git
- **ホームページ:** <https://github.com/mhagger/git-when-merged>
- **リポジトリ:** <https://github.com/mhagger/git-when-merged>
- **ライセンス:** GPL-2.0-only
- **ソースアーカイブ:** <https://github.com/mhagger/git-when-merged/archive/refs/tags/v1.2.1.tar.gz>
- **最終更新:** 2026-06-18T09:25:51+09:00
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- git-when-merged (cli)
- git-when-merged (エイリアス)

## macOS 提供ライブラリ

- python

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 all

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 1.2.1
- マネージャ更新日: 2026-06-18
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/mhagger/git-when-merged
- 検出された最新: v1.2.1 (最新)
## プロジェクトの歴史と使われ方

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

### プロジェクトの歴史

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.

### 採用の歴史

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.

### 使われ方

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.

### パッケージ好きにとっての重要性

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.

### タイムライン

- 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

### ソース

- <https://formulae.brew.sh/formula/git-when-merged>
- <https://github.com/mhagger/git-when-merged>
- <https://github.com/mhagger/git-when-merged/releases>
- <https://pypi.org/project/git-when-merged>
- <https://raw.githubusercontent.com/mhagger/git-when-merged/master/README.md>


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** git-when-merged
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 他のパッケージマネージャ記録

- Nix - git-when-merged: normalized package name match | 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
- MacPorts - git-when-merged: normalized package name match | MacPorts ports tree: devel/git-when-merged/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 関連リンク

- [Source-control packages](https://pkg.so/ja/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/ja/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [git-lfs](https://pkg.so/ja/brew/git-lfs/) - Shares pkgdb curated category or tags: cli, developer-tools, git-extension.
- [git-xet](https://pkg.so/ja/brew/git-xet/) - Shares pkgdb curated category or tags: cli, developer-tools, git-extension.
- [git-machete](https://pkg.so/ja/brew/git-machete/) - Shares pkgdb curated category or tags: cli, developer-tools, git-extension.
- [git-who](https://pkg.so/ja/brew/git-who/) - Shares pkgdb curated category or tags: cli, developer-tools, git-extension.
- [git-trim](https://pkg.so/ja/brew/git-trim/) - Shares pkgdb curated category or tags: cli, developer-tools, git-extension.
- [git-octopus](https://pkg.so/ja/brew/git-octopus/) - Shares pkgdb curated category or tags: cli, developer-tools, git-extension.
- [git-open](https://pkg.so/ja/brew/git-open/) - Shares pkgdb curated category or tags: cli, developer-tools, git-extension.
- [committed](https://pkg.so/ja/brew/committed/) - Shares pkgdb curated category or tags: cli, commit-history, developer-tools.
- [git-mediate](https://pkg.so/ja/brew/git-mediate/) - Package names and metadata indicate a similar tool family. Shared terms: cli, developer, developer-tools, extension, git.

## Combined YAML source

View the package source record on GitHub. [combined/git-when-merged.yml](https://github.com/mxcl/pkgdb/blob/main/combined/git-when-merged.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
