Commit Graph

36 Commits

Author SHA1 Message Date
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 41a906d715 PBGitRepository: Don't return a ref if we error out
This fixes the -parseReference: method to return nil if
there is an error in the git call. This also simplifies
our commit controller.
2008-10-29 00:24:10 +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 5010511bdb CommitView: Always use a single PBChangedFile object
This makes sure we don't add a double object to our array,
if a file has both cached and unstaged changes.
2008-10-10 21:59:23 +02:00
Pieter de Bie 69e1c6fc45 CommitView: Don't break on oneliners
e2210f7306e4c1647ff068f660db1674ce0391e1 (CommitView: Add a better reflog entry)
created a bug where an exception was thrown if you enter a one-lined commit
message.
2008-10-10 21:59:22 +02:00
Pieter de Bie fd146bd44b CommitView: Add a better reflog entry
This adds an entry in the form of

	commit: CommitView: Add a better reflog entry

to the reflog upon commit, rather than

	Commit from GitX

which isn't very informative
2008-10-10 21:59:22 +02:00
Pieter de Bie d66a105a4b CommitView: Allow rootless commits
This fixes the committing of rootless commits by not
requiring a HEAD parent if there isn't one.
2008-10-10 21:59:21 +02:00
Pieter de Bie a42adc6d82 CommitView: Allow doubleclick to (un)stage changes 2008-10-04 22:41:21 +02:00
Pieter de Bie 8c59a1249a CommitView: Also read in new objects with null-separator 2008-10-03 19:06:47 +02:00
Pieter de Bie a0f248ef9f CommitView: Also show deleted files correctly 2008-10-03 18:06:57 +02:00
Pieter de Bie 7a5716b24d CommitView: Use null-terminated strings when reading the index 2008-10-03 18:06:41 +02:00
Pieter de Bie e329493154 Move toolbar to view xib 2008-10-03 17:18:26 +02:00
Pieter de Bie b753ab09e5 CommitView: Don't allow empty commits 2008-09-28 21:25:53 +02:00
Pieter de Bie a2217fe099 Reload commits after doing a commit 2008-09-28 13:03:55 +02:00
Pieter de Bie 4131258108 CommitController: Read index data to EOF
Otherwise not all information may be parsed correctly
2008-09-27 00:32:06 +02:00
Pieter de Bie b243e86a58 CommitController: Don't show files that are in conflict twice 2008-09-26 00:39:56 +02:00
Pieter de Bie 978d7cb2b1 CommitView: Correctly set the default commitmessage font to Monaco 12
This way, wo don't need any text entered to set a font.
2008-09-26 00:11:49 +02:00
Pieter de Bie b005066fb2 CommitView: Make sure controllers are notified on refresh
This makes sure the controllers are notified if we empty the file
array for an index refresh.

I don't know if this is necessary, but it can't hurt.
2008-09-26 00:04:01 +02:00
Pieter de Bie 37cda5faa4 CommitView: Intelligently add files
Rather than rereading our status every time we add something,
calculate where a file should go.
2008-09-25 23:57:48 +02:00
Pieter de Bie d58127e6a2 CommitView: Sort items based on status and then path 2008-09-25 23:37:44 +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 55b37d903c CommitView: Asynchronously read in the files
This makes the gui more responsive, as it doesn't block while
exec'ing git 3 times.
2008-09-25 23:15:00 +02:00
Pieter de Bie b257f0090a Fix compiler warnings 2008-09-24 17:19:58 +02:00
Pieter de Bie 2676a20291 Fix some compiler warnings 2008-09-24 01:25:30 +02:00
Pieter de Bie 3f923f51a1 CommitView: Add commit capability 2008-09-24 01:08:10 +02:00
Pieter de Bie 76e176e8b4 Add staging and unstaging of files 2008-09-24 00:47:41 +02:00
Ciarán Walsh 9893037d86 Hit testing and action sending 2008-09-23 22:41:32 +01:00
Ciarán Walsh b8292f1b34 Adding an icon and text cell implementation from CocoaDev 2008-09-23 22:11:28 +01:00
Ciarán Walsh 5111b363ef Setting up target/action for the file icon buttons 2008-09-23 18:37:15 +01:00
Ciarán Walsh 7be97dcbf8 Using button cells instead of image cells, for the icons, so we can hook up an action. 2008-09-23 18:08:28 +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 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