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 <[email protected]>
---
Two small patches, for the sake of completeness and discussing them here on the 
mailing-list as well.

 PBGitCommitController.m |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/PBGitCommitController.m b/PBGitCommitController.m
index 320a307..1e894ee 100644
--- a/PBGitCommitController.m
+++ b/PBGitCommitController.m
@@ -168,6 +168,9 @@ - (void) refresh:(id) sender
        [nc addObserver:self selector:@selector(readCachedFiles:) 
name:NSFileHandleReadToEndOfFileCompletionNotification object:handle]; 
        self.busy++;
        [handle readToEndOfFileInBackgroundAndNotify];
+
+       // Reload refs (in case HEAD changed)
+       [repository reloadRefs];
 }
 
 - (void) updateView
-- 
1.6.4.rc3.12.gdf73a

Reply via email to