Commit Graph

9 Commits

Author SHA1 Message Date
Benjamin Kramer 988b105455 Fix compilation with GCC 4.2
Also compiles fine with LLVM-GCC.
2009-04-29 12:30:29 +01:00
Pieter de Bie 4e915cc68f Remove "extern C" declaration when importing libgit2
libgit2 takes care of thiss now, so we don't have to.
2008-11-25 17:43:11 +01:00
Pieter de Bie bda90606f2 PBGitLane: remove functions with NSString arguments
We don't use these, so let's keep the class clean
2008-11-25 17:43:11 +01:00
Pieter de Bie 8372aee404 PBGitCommit: Use git_oids for parent shas
This uses a normal c array to store parent sha's. That means that we
save a lot of room, as they are only 20 bytes rather than 40 + the cost of
an NSArray and the NSStrings.
2008-11-24 22:54:04 +01:00
Pieter de Bie d2eafc2d52 Include libgit2 as submodule and use it to store sha's
This reduces GitX's memory usage and makes some operations much faster,
like graphing, by having a cheaper comparison
2008-11-24 22:53:48 +01:00
Pieter de Bie cef35ac7ce GitGrapher: Rewrite looping code to C++
This makes the revwalking faster by not creating as many NSObjects as before.
2008-11-24 22:32:42 +01:00
Pieter de Bie a66ae7c1e7 Grapher: Always reset colors at start of graphing 2008-10-03 18:27:12 +02:00
Pieter de Bie b257f0090a Fix compiler warnings 2008-09-24 17:19:58 +02:00
Pieter de Bie a294d911b0 Grapher: Add colors to lane
This introduces a new object, PBGitLane that keeps track of the current lane.
We used to only need a sha for a lane, but now that more information is
needed, an extra object is in order. PBGitLane keeps a lane index number. This
number is later used to pick a color.
2008-08-28 00:25:33 +02:00