Oh, just saw this, it involves invoking the proper git tools to get the diff, and then converting the diff format from unified to ed format.  The later is actually easier than it might seem as unified diffs start all of their special information in column 0; IIRC I wrote an awk script to do this.  It&#x27;s on my work machine though, so I don&#x27;t have it handy.