Commit Graph

30 Commits

Author SHA1 Message Date
Nathan Kinsinger cfcbec788a Switch "Discard changes" panel to a window modal sheet 2010-02-19 22:53:38 -07:00
Pieter de Bie 438a3f808d GitIndexController: reorder methods a bit, remove unnecessary stuff 2009-09-13 16:55:40 +02:00
Pieter de Bie 3dc312ff2e PBGitIndex: Migrate discardChanges to the GitIndex 2009-09-13 16:55:40 +02:00
Pieter de Bie 029b42c540 GitIndex: explicitly tell when stuff is updated 2009-09-13 16:55:40 +02: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 f51fd6c214 GitIndexController: Migrate stageFiles functions to GitIndex 2009-09-13 16:55:38 +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
Pieter de Bie 64bc1f96ca IndexController: re-add ellipsis to "Discard Changes" menu item
This was accidentally deleted when I applied a patch from JS
2009-08-28 00:32:50 +02:00
Pieter de Bie 04db47d8e6 Merge commit 'origin/master'
* commit 'origin/master':
  CommitController: Don't turn of off automatic rearranging
  PBGitRepository: Clean up the readFromURL: method
  PBGitRepository: Fix opening of large directories due to bug in NSFileWrapper.
  PBGitIndexController: Renamed "Revert" to "Discard"
  CommitController: Reject merges
  HistoryController: Add "Open Files" menu item
  WebHistoryView: Also use the tree context menu
  HistoryController: Use a programatically created context menu
  WebHistoryController: Refactor menu search to be recursive
  HistoryController: Add some marks
  PBGitHistory: Add "Show in Finder" to files
  Display context menu in the history tree to show related commits
  History fileview: select current item on rightclick
  PBGitConfig: Add missing sentinel
  Remove use of deprecated stringWithCString
  HistoryView: only add parents if parents array exists
  keyboardNavigation: Fix keys 'c' and 'v' from webView
  Site: add link to Twitter

Conflicts:
	PBGitHistoryView.xib
	PBGitIndexController.m
2009-07-07 12:02:27 +01:00
Nicholas Riley 7baf854666 Remove extraneous space in "Are you sure you wish to revert changes?" message. 2009-07-07 11:56:40 +01:00
Johannes Gilger 34f72ba27a PBGitIndexController: Renamed "Revert" to "Discard"
In keeping consistent with the Discard-Hunk functionality we rename the
former "Revert changes" on file-level to "Discard changes". Along with
the menu-item all the functions and variables have been renamed
accordingly. Also get rid of an unnecessary force-function.

Signed-off-by: Johannes Gilger <heipei@hackvalue.de>
2009-06-20 21:19:26 +01:00
Johannes Gilger 13746a5a6b PBGitWindowController: Use beginSheetModalForWindow instead of runModal
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 <heipei@hackvalue.de>
2009-06-09 18:33:02 +02:00
Pieter de Bie 85f2c72d69 Merge branch 'pu/pb/fix_refresh'
* pu/pb/fix_refresh:
  Rename 'CachedChanges" to "StagedChanges" for greater consistency
  PBChangedFile: remove shouldBeDeleted boolean
  GitCommitController: Also use dictionary lookup for untracked files
  CommitController: Use a dictionary lookup when refreshing index
  GitCommitController: clean up index functions
2009-05-28 17:41:33 +01:00
Pieter de Bie 0d8ba8c263 Rename 'CachedChanges" to "StagedChanges" for greater consistency 2009-05-28 17:40:17 +01:00
Charles O'Rourke 3b6c2a3048 Ticket #142: Add Show in Finder to Unstaged and Staged table views. 2009-05-28 13:42:35 +01:00
Benjamin Kramer 4a4b551822 PBGitIndexController: fix uninitialized value
The encoding used to write a new .gitignore was based on an
uninitialized value. Fix this by using UTF-8 as the default.

Found by the clang static analyzer.
2009-05-18 23:14:11 +01:00
Benjamin Kramer 6dcefe5bec Fix many gcc 4.2 compiler warnings 2009-05-18 23:08:51 +01:00
Pieter de Bie aeb5c4d8e1 IndexController: Temporarily stop tracking when (un)staging
This uses the new way to stop tracking the index when
adding files. This can be noticed when staging more than
one file, as the tables might have to refresh dozens
of times.
2009-04-28 16:39:27 +01:00
Pieter de Bie 91c11358f1 IndexController: Add methods to stop tracking the Index
This is useful when changing large portions of the index
at once, as refreshing the tables in those cases can
become a large burden.
2009-04-28 16:38:54 +01:00
Pieter de Bie c70eff74e8 IndexController: Use diff-files instead of diff
Apparently this fixes some issue for Vincent Kergonna.
I hope this helps! :)
2009-03-24 00:25:20 +00:00
Pieter de Bie 9c4c2a347b CommitView: Allow changing of context size
This adds a slider in the commit view with
which the user can change the context size.

This is useful for example if the hunks are too
big; by changing the context size, a hunk can be
split and then the changes can be committed.
2009-01-19 21:37:37 +00:00
Pieter de Bie 85fa5a1d8f GitCommit: Restore revert functionality
This restores the "Revert Changes.." functionality
that was removed when changing the file list stuff.

It's now possible to revert multiple files. Also, it
now uses 'git checkout-index', which should be a bit
more robust.
2008-12-22 22:22:10 +01:00
Mark Bestley fc00f6c087 CommitView: Add option to add files to .gitignore
In the commit view, add an option in the context menu to have git
ignore them by adding the file names to .gitignore file in the root
of the workarea.
2008-12-22 21:59:11 +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 7cf4a103a8 CommitView: Add an "Open Files" context menu action 2008-11-19 15:12:32 +01:00
Pieter de Bie e76d483180 CommitView: Allow drag and drop to external applications
This allows you to drag a changed file to for example XCode,
so you can edit it.
2008-11-19 15:06:13 +01:00
Pieter de Bie 6fcc12d69d CommitView: Allow drag 'n drop of staged / unstaged files 2008-11-18 23:59:25 +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