Commit Graph

28 Commits

Author SHA1 Message Date
Nathan Kinsinger 1b41171d92 Add a bottom content border/toolbar to the repository window
- add an action menu for the selected ref in the source view
    - add Add Remote, Fetch, Pull and Push buttons to the bottom bar
        - Add Remote icon by Nathan Kinsinger
        - Fetch, Pull and Push icons are modified versions of André Berg's icons (from 4396081c07) made a bit smaller to fit in the UI better.
    - move the status message for both the history view and the commit/stage view
        - all PBViewControllers now have status and isBusy properties and can use those to put a message in the bottom bar when they are the active content controller of the window
2010-03-13 22:15:13 -07:00
Nathan Kinsinger 03dc7819b4 Disable Commit button when there are no staged files. 2010-02-19 22:54:55 -07:00
Pieter de Bie 9b1fcd7628 Remove cruft 2009-09-13 16:55:40 +02:00
Pieter de Bie 6265c774ac CommitView: Remove cruft 2009-09-13 16:55:39 +02:00
Pieter de Bie c6d2b61020 CommitController: Add status messages for index operations 2009-09-13 16:55:39 +02:00
Pieter de Bie 64a52ad9e0 CommitView: Migrate diff displaying away from IndexController 2009-09-13 16:55:38 +02:00
Pieter de Bie 03e1d3e882 WIP: Add GUI support for the new index 2009-09-13 16:55:38 +02:00
Johannes Gilger 93124387c4 PBGitCommit: Add "Sign-Off" button/method
This adds a small method signOff which simply appends a SOB-line to the
current commit-message, using user.name and user.email.

Signed-off-by: Johannes Gilger <heipei@hackvalue.de>

Signed-off-by: Pieter de Bie <frimmirf+gitx@gmail.com>
2009-06-11 23:39:08 +01:00
Pieter de Bie a14495052a PBGitCommitController: retain author information of previous commit 2009-06-11 18:57:34 +01:00
Johannes Gilger 7b6393570f PBWebChanges: Allow discarding of hunks
This enables a "discard" button for unstaged hunks which simply gets rid of the
changes (by using "git apply --reverse").

To avoid repetition, the stageHunk method was split into a more generic
processHunk method. The "discard" functionality is called through
discardHunk.

The NSAlert shown when discarding can be bypassed by pressing "Alt"
while clicking the discard-button.

Signed-off-by: Johannes Gilger <heipei@hackvalue.de>
2009-06-06 17:20:30 +01:00
Benjamin Kramer c12e8b9dd4 Get rid of some unnecessary casts 2009-05-27 18:09:29 +01:00
Pieter de Bie e0d8df63e8 IndexController: Don't try to be smart when diffing staged changes
We previously used some cool git syntax to display changes in the index.
The unfortunate side-effect of this was that the diff headers weren't correct,
so the unstage button didn't work anymore.
2008-12-02 01:00:18 +01:00
Pieter de Bie 0975426f2f CommitView: move index functions to separate controller
This merges functionality that was previously stored in the
combination of PBGitCommitController / PBChangedFile to a
dedicated controller, PBGitIndexController.
2008-11-18 23:59:25 +01:00
Pieter de Bie 90db001409 WebCommitView: Add a state display
This adds a div in the webview to display the current commit
state. It allows us to notify the user of new commits by
showing something in the webview, rather than a modal
dialog.
2008-11-01 20:56:33 +01:00
Pieter de Bie b252de1a76 CommitView: Allow committing per hunk 2008-10-21 23:31:45 +02:00
Pieter de Bie 472d36c7f9 CommitView: Add context menu to revert changes 2008-10-10 21:59:23 +02:00
Pieter de Bie e659e63fc0 CommitView: Add option to amend commits 2008-10-10 21:59:23 +02:00
Pieter de Bie a42adc6d82 CommitView: Allow doubleclick to (un)stage changes 2008-10-04 22:41:21 +02:00
Pieter de Bie 0ad81bc2a6 CommitView: Use the status bar to update on status 2008-09-25 23:31:24 +02:00
Pieter de Bie 3f923f51a1 CommitView: Add commit capability 2008-09-24 01:08:10 +02:00
Ciarán Walsh 9893037d86 Hit testing and action sending 2008-09-23 22:41:32 +01:00
Pieter de Bie 81e257f4e6 CommitController: add missing declaration 2008-09-23 20:31:46 +02:00
Ciarán Walsh 5111b363ef Setting up target/action for the file icon buttons 2008-09-23 18:37:15 +01:00
Pieter de Bie 44009b6f3e CommitView: use only one array for all files 2008-09-23 02:04:12 +02:00
Pieter de Bie 252796ee26 CommitView: Show basic files 2008-09-23 01:02:33 +02:00
Pieter de Bie 4ebe4b4aa9 PBGitRepository: add a handle for in-worktree-commands 2008-09-22 22:49:59 +02:00
Pieter de Bie 53dfea545e PBViewController: Extract common code to a superclass 2008-09-22 21:40:42 +02:00
Pieter de Bie 65b61d4502 add more files 2008-09-19 23:33:26 +02:00