Sending the arguments with the openURL:... message allows the repository document to modify it's UI without the UI flashing between states as it opens. Covers all the existing functionality of the CLI, but modifies: - "--all" "--local" "--branch" change the branch filter - cleaned up the usage (help) text and added info on missing commands - looks up the full ref name of refs so the name of a branch or tag can be entered (the user can enter "master" instead of "refs/heads/master") Modified the History Controller to watch for and react to branch filter changes. The GitX.h file is generated by the 'sdp' tool in a run script build phase called 'Generate Scripting Bridge Header' based on the content of GitX.sdef. It is used by the Scripting Bridge so that other apps (in this case the gitx CLI) can call Applescript commands on GitX in objective-c.
…ronment variable to make GitX ask for passwords. Set the environment variables for our tool. We have a rudimentary but working password panel now. Prettification later. Label on password window so it's less cryptic.
Conflicts: ApplicationController.m GitX.xcodeproj/project.pbxproj PBGitCommitView.xib PBGitHistoryView.xib PBGitRevisionCell.m PBGitTree.m PBGitWindowController.m PBViewController.m html/views/history/history.js html/views/history/index.html
In 10.6 Apple removed the private QL API that existed in 10.5 and added a new public API. However they did not port the new API back to 10.5 so we have to do some work to get it working in both. This patch has GitX choose the correct version at run time. - The delegate code is based on Apple's QuickLookDownloader example project - added three of the public API methods to CWQuickLook.h to avoid warnings about unknown method calls - In ApplicationController try to load the public API first then load the private one if it fails - Created PBQLTextView, a subclass of NSTextView to allow the space key event to toggle the preview panel - PBGitHistoryView.xib: - set the text view's class to PBQLTextView - connected the history controller to the controller outlet - bound the quick look button's enabled binding to File's Owner.selectedCommitDetailsIndex - added "Quick Look" to the quick look button's tooltip - The commit list table view toggles the panel if the tree view is active - changed name of the toggle IBAction method which caused MainMenu.xib and PBGitHistoryView.xib to update
This patch adds a CFBundleGitRevision key to Info.plist which is set to the output of "git describe" when building. The menu-entry for "About GitX" was reconnected to a custom method in the AppController, which reads the CF-string from the .plist and also indicates if the build is a DEBUG-build. Signed-off-by: Johannes Gilger <email@example.com>
We don't want to do this in the commit view, as that way you can't commit whitespace differences. You'll never be able to have a clean working tree, and you can't see why the files remain 'unstaged'. So, we do this only for the history view :)
When trying to install the gitx symlink into /usr/local/bin, GitX would fail if the directory /usr/local/bin didn't exist yet. We simply call mkdir -p in advance, which only creates the directory if doesn't exist.
This fixes an issue where command line arguments were not passed because the repository was already opened.
…on isn’t ready yet. It also gives the user a command they can run to create the symlink manually.
…rough distributed objects. Currently it simply launches the app and connects, however this will allow passing of arguments (for example, a revision to show).
…ntDirectoryPath], but this doesn’t work when opening GitX from the commandline. So, this changes back to using $PWD (but through Cocoa instead, via NSProcessInfo)
Multiple repositories can now be opened by using the File → Open… menu option. Each document is a PBGitRepository with a PBDetailController controlling the window. PBRepositoryDocumentController is the document controller. When launched, the application will attempt to open a repository with the current directory as its path. If this fails it will display an open panel to allow the user to select one.
…nib; this will allow multiple repository windows to be used. PBDetailController is the window controller, and now takes ownership of the repository so we can bind to it through File’s Owner in the nib file. Currently the ApplicationController creates a new PBDetailController at startup with the opened repository.
This is required when running with TextMate’s Build & Run command, as the application is opened in the background.