Skip to content

Instantly share code, notes, and snippets.


Andy Jordan andschwa

View GitHub Profile
andschwa /
Last active August 29, 2015 14:27 — forked from datagrok/
How to simplify the graph produced by git log --graph

Ideas for improvements to git log --graph

I will maybe someday get around to dusting off my C and making these changes myself unless someone else does it first.

Make the graph for --topo-order less wiggly

Imagine a long-running development branch periodically merges from master. The git log --graph --all --topo-order is not as simple as it could be, as of git version

It doesn't seem like a big deal in this example, but when you're trying to follow the history trails in ASCII and you've got several different branches displayed at once, it gets difficult quickly.

andschwa / g++ test.cpp
Last active August 29, 2015 14:15 — forked from 13abylon/g++ test
View g++ test.cpp
// g++ test.cpp --std=c++11 -lpthread -O2
//#ifdef WIN32 <- stdafx breaks this ifdef...
//#include "stdafx.h"
#include <iostream>
#include <atomic>
#include <thread>
#include <vector>