Permalink
Browse files

CommitView: Remove checking if same file is displayed

This causes trouble if a file was partially staged,
or if we switch from the staged changes to the
unstaged changes.

It should be quick enough not to matter anyway, so
let's simplify things and remove the check.
  • Loading branch information...
1 parent fe38069 commit 4f212f04b589696ba84ebf6a2368d2d73d7a7fef @pieter pieter committed Oct 9, 2008
Showing with 0 additions and 8 deletions.
  1. +0 −2 PBWebChangesController.h
  2. +0 −6 PBWebChangesController.m
@@ -15,8 +15,6 @@
IBOutlet NSArrayController *unstagedFilesController;
IBOutlet NSArrayController *cachedFilesController;
IBOutlet PBGitCommitController *controller;
-
- id previousFile;
}
- (void) showDiff:(PBChangedFile *)file cached:(BOOL)cached;
@@ -58,12 +58,6 @@ - (void) showDiff:(PBChangedFile *)file cached:(BOOL) cached
return;
}
- // Don't reload if we already display this file
- if (previousFile == file)
- return;
-
- previousFile = file;
-
id script = [view windowScriptObject];
NSLog(@"Showing diff..");
[script callWebScriptMethod:@"showFileChanges" withArguments:[NSArray arrayWithObjects:file, [NSNumber numberWithBool:cached], nil]];

0 comments on commit 4f212f0

Please sign in to comment.