Skip to content

Instantly share code, notes, and snippets.

View scunz's full-sized avatar

Sascha Cunz scunz

  • Cunz RaD Ltd
  • London, United Kingdom
View GitHub Profile
@scunz
scunz / divergence.c
Created September 9, 2012 14:30
Prove that git_mergebase + 2x git_revwalk can _not_ be used to find the "is 5 ahead 3 behind foo"
#include <assert.h>
#include <stdio.h>
#include <memory.h>
#include "git2.h"
char* gerr = 0;
int find_divergence_single(