Skip to content

Instantly share code, notes, and snippets.

yorah / gist:5255190
Created Mar 27, 2013
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`
View gist:5255190
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 / Program.cs
Created Nov 13, 2012
Zip utility using System.IO.Packaging (.Net 3.0)
View Program.cs
using System;
using System.Diagnostics;
using System.IO;
using System.IO.Packaging;
namespace ZipZip
class Program
static void Main(string[] args)