How to build a `git diff` driver

· Jamie Tanna · April 11, 2026, 12:05 p.m.
Summary
This blog post discusses how to create an external command for diffing files using the `git diff` tool, highlighting a lack of clear documentation on the topic. It details the necessary arguments and provides a worked example related to updating, adding, or deleting files. Additionally, the author mentions using the `oasdiff` tool for comparing OpenAPI specs and shares a basic implementation of a diff driver script that outputs human-readable changelogs. The discussion is inspired by previous blog posts and aims to clarify the process of setting up custom diff drivers.
AUTHOR
Sponsored
Zulip logo Zulip
Organized team chat for people who take work seriously. Topic-based threading keeps conversations focused.
Try Zulip
Become a sponsor →