mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
Add Diff to contextual menus
- added to menus for refs, commits, and files
- show a message when there are no changes
This commit is contained in:
@@ -35,7 +35,10 @@
|
||||
return;
|
||||
|
||||
id script = [view windowScriptObject];
|
||||
[script callWebScriptMethod:@"showDiff" withArguments: [NSArray arrayWithObject:diff]];
|
||||
if ([diff length] == 0)
|
||||
[script callWebScriptMethod:@"setMessage" withArguments:[NSArray arrayWithObject:@"There are no differences"]];
|
||||
else
|
||||
[script callWebScriptMethod:@"showDiff" withArguments:[NSArray arrayWithObject:diff]];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user