Introduce a new showMessageSheet/showErrorSheet-method for PBGitWindowController which uses the beginSheetModalForWindow method of NSAlert whereever possible. This has the advantage over runModal as it doesn't block the other instances of GitX and is generally more unobstrusive for simple status-messages. Signed-off-by: Johannes Gilger <firstname.lastname@example.org>
This adds a removeBranch method similar to the addBranch method. It calls these methods when a branch is created/deleted in the UI, avoiding the cost of simply calling refresh afterwards. Signed-off-by: Johannes Gilger <email@example.com>
* stable: Fix many gcc 4.2 compiler warnings GitX.xcodeproj: Quote paths in custom shell scripts Fix compilation with GCC 4.2 IndexController: Temporarily stop tracking when (un)staging IndexController: Add methods to stop tracking the Index ChangesTableView: Remove warning by casting to correct class Conflicts: PBGitCommitController.m
Show a very simple user-dialog when trying to delete a branch or a tag. This satisfies ticket #115. Signed-off-by: Johannes Gilger <firstname.lastname@example.org>
We used to unconditionally set the title of the branch to the current branch. This worked fine in most cases where the current branch was already known, but failed when you use 'gitx -c' and then switch to the HistoryView, because then the currentBranch isn't known yet. The simple fix is to check if we know it. If we don't, it'll be set later on.
This was also broken with the libgit2 move
I stupidly used "observe.." instead of register.. so KVC didn't even work
This will update the view with the new current branch.
That's why it's there, after all. This also makes the system more robust and catches some more errors. The next thing this enables is to also allow right-clicking on refs in the commit list.