From 0823ff859dc65db238951c16e49293ea411c2b5a Mon Sep 17 00:00:00 2001 From: Johannes Gilger Date: Sun, 30 Aug 2009 23:12:43 +0200 Subject: [PATCH] Keep window-title up-to-date in commit view This issues a simple reloadRefs when refreshing the commit-view, keeping the current branchname up-to-date here as well. Signed-off-by: Johannes Gilger --- PBGitCommitController.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PBGitCommitController.m b/PBGitCommitController.m index 320a307..1e894ee 100644 --- a/PBGitCommitController.m +++ b/PBGitCommitController.m @@ -168,6 +168,9 @@ [nc addObserver:self selector:@selector(readCachedFiles:) name:NSFileHandleReadToEndOfFileCompletionNotification object:handle]; self.busy++; [handle readToEndOfFileInBackgroundAndNotify]; + + // Reload refs (in case HEAD changed) + [repository reloadRefs]; } - (void) updateView