mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user