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
This commit is contained in:
Pieter de Bie
2008-11-21 10:18:18 +01:00
parent 1a7ad9415f
commit d2eafc2d52
14 changed files with 207 additions and 112 deletions
+2 -2
View File
@@ -38,12 +38,12 @@
return;
// The sha is the same, but refs may have changed.. reload it lazy
if ([currentSha isEqualToString: content.sha])
if ([currentSha isEqualToString: [content realSha]])
{
[[self script] callWebScriptMethod:@"reload" withArguments: nil];
return;
}
currentSha = content.sha;
currentSha = [content realSha];
NSArray *arguments = [NSArray arrayWithObjects:content, [[[historyController repository] headRef] simpleRef], nil];
[[self script] callWebScriptMethod:@"loadCommit" withArguments: arguments];