Skip to content

Instantly share code, notes, and snippets.

@yorah
yorah / gist:5255190
Created March 27, 2013 15:40
API proposal to retrieve both the ahead/behind count, and the actual commits. `git_commit_list` would be an opaque type containing a `git_vector`
typedef struct git_commit_list git_commit_list;
/**
* Count the number of unique commits between two commit objects
*
* There is no need for branches containing the commits to have any
* upstream relationship, but it helps to think of one as a branch and
* the other as its upstream, the `ahead` and `behind` values will be
* what git would report for the branches.
*
@yorah
yorah / Program.cs
Created November 13, 2012 09:43
Zip utility using System.IO.Packaging (.Net 3.0)
using System;
using System.Diagnostics;
using System.IO;
using System.IO.Packaging;
namespace ZipZip
{
class Program
{
static void Main(string[] args)