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:
Nathan Kinsinger
2010-02-27 10:06:25 -07:00
parent dc56af4aa6
commit c19d2c8058
10 changed files with 103 additions and 3 deletions
+4 -1
View File
@@ -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