Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

git-overlap

Latest version: v0.8.0

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
PyPI package Publisher: jacob-adm
1 Stars
0 Forks
8 Versions
1.1K Downloads
Python Repo language

Scan summary

git-overlap was last scanned on 29 Nov 2026 at version 0.8.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 8 versions; the latest 3 were published within 7 days (23–29 Nov 2026).
  • Findings: No rules fired in version 0.8.0.
  • Downloads: 1,073 downloads.

Versions

8 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.8.0 LATEST 29 Nov 2026 No rules fired
0.7.0 27 Nov 2026 No rules fired
0.6.1 23 Nov 2026 No rules fired
0.6.0 21 Nov 2026 Not shown
0.5.0 21 Nov 2026 Not shown

No rules fired in 0.8.0

Findings

Findings for v0.8.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.8.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

git-overlap

PyPI Python Licence

git-overlap is a package of three git commands: git footprint, git overlap and git pairmerge. Installing it puts git-footprint, git-overlap and git-pairmerge on your PATH; git runs any git-NAME program on PATH as git NAME, so no configuration is needed.

Several branches, often from AI agents working in parallel, edit the same few files. Each branch is fine alone, but when one lands the others conflict or must be re-tested, so landing them one at a time multiplies CI runs and agent time. git-overlap shows, before any merge, which branches change the same files and which pairs really conflict, so they can be batched, reordered or fixed first.

git-overlap was inspired by Xuchen Yao's article "Rethinking Merging and Continous Integration for Agentic Workflows" (4 November 2026). It covers the measurement side the article calls for; see Relation to the article.

It is one of six audit tools that print the same result format with --audit-json. suite-gate runs them together and gives one verdict per branch, as a command, a GitHub Action or an MCP server for coding agents.

Example output

A demo repository with two branches that both edit app.py:

The same pair with --audit-json (first lines of the result):

Requirements

  • Python 3.9 or later, standard library only.
  • git 2.38 or later. git pairmerge needs git 2.43 or later; on an older git it exits 2 with a message naming 2.43. git must be an executable named git on PATH.
  • Linux, macOS and Windows, all tested in CI.
  • The examples are POSIX sh; on Windows, run them from Git Bash. Windows has two further limits on refs and git shims; see Limitations.

Install

From PyPI:

pip install git-overlap

From a clone:

git clone https://github.com/jacob-adm/git-overlap
cd git-overlap
pip install .

Either way pip installs git-footprint, git-overlap and git-pairmerge as console scripts. If git answers that footprint is not a git command, the directory pip installs scripts into is not on PATH. Check the install:

git footprint --version
git-footprint 0.8.0

Use -h for usage: git footprint --help is answered by git itself, which looks for a manual page. Without installing, each command also runs from a clone as python3 -m git_overlap.footprint (and .overlap, .pairmerge).

How it works

  1. List the branches. Pipe the branch names in, one per line, for example from git for-each-ref. Each command reads tab-separated lines and writes tab-separated lines, so the output of one is the input of the next. Add --json to the last command to get its records as a JSON array instead, for a CI script or an agent; see JSON output.
  2. git footprint BASE: what each branch changes. For each branch it lists every file the branch changes since it left BASE, the same list a pull request's "files changed" shows. A rename counts as deleting the old path and adding the new one.
  3. git overlap: which branches touch the same files. It pairs every two branches that change the same file, or a file and a path under it (foo and foo/bar). It only reads its input and runs no git. A pair listed here may still merge cleanly.
  4. git pairmerge: which pairs really conflict. For each pair it runs the merge in memory with git merge-tree --write-tree and prints clean, or conflict with each conflicted file. Nothing is checked out and nothing is written to the repository. With --onto BASE, it asks whether the two would conflict if both landed on BASE, one after the other, and marks a branch that no longer merges into BASE as stale. To include work that is not committed yet, name a worktree as worktree:PATH in place of a branch: it stands for the files in that worktree as they are now. Nothing is written to the repository to do this. See Commands.
  5. Act on the result. Like grep and diff, git overlap and git pairmerge exit 1 when they find something, 0 when they find nothing and 2 on an error, so a script or CI job can stop on it. Batch, reorder or fix the conflicting branches before merging them.

Commands

git footprint [-z] [--json] BASE < refs
git overlap [-z] [--json | --audit-json] [--with REF] < footprint
git pairmerge [-z] [--json | --audit-json] [--attributes FILE] [--onto BASE] < pairs

Each command reads tab-separated records on standard input and writes them on standard output. -z uses NUL-terminated records and --json writes a JSON array; --audit-json writes one object in the audit result format shared with other audit tools. See Commands for the fields, worktree:PATH refs and exit status.

Quick start

Inside the repository to check, list its branches one per line and pipe them through the three commands. Replace main with the base branch and refs/heads/agent/ with the refs to check, for example refs/remotes/origin/ for every branch fetched from origin. Below, the commands run in the example repository.

git for-each-ref --format='%(refname:short)' refs/heads/agent/ |
  git footprint main | git overlap | git pairmerge --onto main | cut -f1-3 | uniq
agent/a agent/b conflict
agent/a agent/c conflict
agent/a agent/d conflict
agent/b agent/c conflict
agent/b agent/d conflict
agent/c agent/d conflict
agent/f agent/g stale

Each line is a pair of branches that conflict when both land on main, one after the other. Drop | cut -f1-3 | uniq to see the conflicted files. agent/e shares no file with any other branch, so git overlap passes on no pair that includes it and git pairmerge never merges it. agent/f no longer merges into main, so its pair is stale, not a conflict; the Stale branches recipe finds such branches. Without --onto main, each pair is merged at its own merge base, where agent/f and agent/g conflict because agent/g carries the change to main that agent/f conflicts with.

Output read on a terminal shows control bytes in names as \xHH; output piped to another program is always the raw bytes.

Documentation

  • For coding agents: how an agent runs the git-overlap commands, reads --audit-json and cites the evidence.
  • Commands: each command's input, output, options and exit status, with examples.
  • Recipes: pipelines that find hotspots, measure p and test merge drivers.
  • Use cases: real runs on three public repositories, with recorded output and timings.
  • Limitations and security: what the commands miss, read and write.
  • Using it with other tools: tested stacks with git surface, trust-path and pr-merge-audit, line-oriented tools and bug-age.
  • Relation to the article: what the article finds and which parts are covered.
  • SPEC.md: the full reference: every option, record format, error and edge case.

Licence

Apache-2.0; see LICENSE.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases git-overlap

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Frame 2085668439 (1)
Group 1261154229