-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
305 changed files
with
796 additions
and
1,074 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
src/GitS-Core.package/GSBaseWorkingCopy.class/instance/actionExportToSar.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
actions | ||
actionExportToSar | ||
self actionExportToSarNamed: self requestSarFileName. |
4 changes: 2 additions & 2 deletions
4
...py.class/instance/writeSarToFileNamed..st → ...class/instance/actionExportToSarNamed..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
sar | ||
writeSarToFileNamed: aString | ||
actions | ||
actionExportToSarNamed: aString | ||
self buildSar writeToFileNamed: aString. |
8 changes: 8 additions & 0 deletions
8
src/GitS-Core.package/GSBaseWorkingCopy.class/instance/actionRemove.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
actions | ||
actionRemove | ||
(self confirm: | ||
('Do you really want to remove the project {1}? ', | ||
'The files on disk will remain, but the project will be no longer be visible here.' | ||
format: {self name printString})) | ||
ifFalse: [^ self]. | ||
self unregister. |
14 changes: 14 additions & 0 deletions
14
src/GitS-Core.package/GSBaseWorkingCopy.class/instance/actionRename.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
actions | ||
actionRename | ||
| newName | | ||
newName := | ||
self class | ||
requestUnregisteredNameFrom: self name | ||
title: | ||
('Rename project {1}. Beware that this name is used for identifying the project, | ||
e. g. when loading assets via {2} for: ''project-name-here''. | ||
Make sure the other users and team members of your project use the same name. New name:' | ||
withoutLineEndings withBlanksCondensed | ||
format: {self name printString. GitAssetLoader printString}). | ||
newName ifNil: [^ self]. | ||
self name: newName. |
11 changes: 0 additions & 11 deletions
11
src/GitS-Core.package/GSBaseWorkingCopy.class/instance/rename.st
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
src/GitS-Core.package/GSBaseWorkingCopy.class/instance/writeSarToRequestedFileName.st
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ore.package/GSBrowser.class/instance/actionChooseNewRepositoryLocationForActiveProject.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
actions | ||
actions-working-copy | ||
actionChooseNewRepositoryLocationForActiveProject | ||
self activeWorkingCopyAction: [:workingCopy | | ||
workingCopy requestAndMoveToNewRepositoryLocation. | ||
workingCopy actionChooseNewRepositoryLocation. | ||
self everythingChanged]. |
2 changes: 1 addition & 1 deletion
2
src/GitS-Core.package/GSBrowser.class/instance/actionCloneProject.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
actions | ||
actions-working-copy | ||
actionCloneProject | ||
self newProject: GSGitWorkingCopy cloneFromUserAndRegister. |
4 changes: 2 additions & 2 deletions
4
src/GitS-Core.package/GSBrowser.class/instance/actionCommit.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
actions | ||
actions-committing | ||
actionCommit | ||
self activeWorkingCopyAction: #openDialogToCommitImage. | ||
self activeWorkingCopyAction: #actionCommit. |
4 changes: 2 additions & 2 deletions
4
src/GitS-Core.package/GSBrowser.class/instance/actionCompareCommitToImage..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
actions | ||
actions-comparing | ||
actionCompareCommitToImage: aCommit | ||
self activeWorkingCopyAction: [:workingCopy | | ||
workingCopy openDialogToShowChangeSetsFromImageTo: aCommit]. | ||
workingCopy actionCompareCommitToImage: aCommit]. |
4 changes: 2 additions & 2 deletions
4
src/GitS-Core.package/GSBrowser.class/instance/actionCompareCommitToParent..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
actions | ||
actions-comparing | ||
actionCompareCommitToParent: aCommit | ||
self activeWorkingCopyAction: [:workingCopy | | ||
workingCopy openDialogToCompareCommitToParent: aCommit] | ||
workingCopy actionCompareCommitToParent: aCommit] |
4 changes: 2 additions & 2 deletions
4
src/GitS-Core.package/GSBrowser.class/instance/actionCreateBranchAtActiveCommit.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
actions | ||
actions-branches | ||
actionCreateBranchAtActiveCommit | ||
^ self actionCreateBranchAtCommit: (self activeCommitIfNilInformAnd: [^ self]) | ||
self activeCommitAction: #actionCreateBranchAtCommit:. |
4 changes: 2 additions & 2 deletions
4
src/GitS-Core.package/GSBrowser.class/instance/actionCreateBranchAtCommit..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
actions | ||
actions-branches | ||
actionCreateBranchAtCommit: aCommit | ||
self activeWorkingCopyAction: [:workingCopy | | ||
workingCopy createBranchAtCommit: aCommit]. | ||
workingCopy actionCreateBranchAtCommit: aCommit]. |
5 changes: 3 additions & 2 deletions
5
src/GitS-Core.package/GSBrowser.class/instance/actionCreateBranchAtCommitAndSwitchToIt..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
actions | ||
actions-branches | ||
actionCreateBranchAtCommitAndSwitchToIt: aCommit | ||
self actionSwitchToBranch: ((self actionCreateBranchAtCommit: aCommit) ifNil: [^ self]). | ||
self activeWorkingCopyAction: [:workingCopy | | ||
workingCopy actionCreateBranchAtCommitAndSwitchToIt: aCommit]. |
4 changes: 2 additions & 2 deletions
4
src/GitS-Core.package/GSBrowser.class/instance/actionCreateBranchAtRef..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
actions | ||
actions-branches | ||
actionCreateBranchAtRef: aString | ||
self activeWorkingCopyAction: [:workingCopy | | ||
workingCopy createBranchAtRef: aString]. | ||
workingCopy actionCreateBranchAtRef: aString]. |
5 changes: 3 additions & 2 deletions
5
src/GitS-Core.package/GSBrowser.class/instance/actionCreateBranchAtRefAndSwitchToIt..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
actions | ||
actions-branches | ||
actionCreateBranchAtRefAndSwitchToIt: aString | ||
self actionSwitchToBranch: ((self actionCreateBranchAtRef: aString) ifNil: [^ self]). | ||
self activeWorkingCopyAction: [:workingCopy | | ||
workingCopy actionCreateBranchAtRefAndSwitchToIt: aString]. |
5 changes: 3 additions & 2 deletions
5
src/GitS-Core.package/GSBrowser.class/instance/actionCreateGitBranchAtCommit..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
actions | ||
actions-branches | ||
actionCreateGitBranchAtCommit: aCommit | ||
^ self actionCreateGitBranchAtCommit: aCommit fromRef: nil | ||
self activeWorkingCopyAction: [:workingCopy | | ||
workingCopy actionCreateGitBranchAtCommit: aCommit]. |
7 changes: 3 additions & 4 deletions
7
src/GitS-Core.package/GSBrowser.class/instance/actionCreateGitBranchAtRef..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
actions | ||
actions-branches | ||
actionCreateGitBranchAtRef: aString | ||
| commit | | ||
commit := (self commitReferencedBy: aString to: 'create an external branch') ifNil: [^ nil]. | ||
^ self actionCreateGitBranchAtCommit: commit fromRef: aString | ||
self activeWorkingCopyAction: [:workingCopy | | ||
workingCopy actionCreateGitBranchAtRef: aString]. |
10 changes: 3 additions & 7 deletions
10
src/GitS-Core.package/GSBrowser.class/instance/actionDeleteRef..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
actions | ||
actions-refs | ||
actionDeleteRef: aString | ||
(self activeWorkingCopy checkCanDeleteRef: aString) ifFalse: [^ self]. | ||
(self confirm: | ||
('Are you sure you want to delete the ref {1}?' | ||
format: {(GitReference shortName: aString) printString})) | ||
ifFalse: [^ self]. | ||
self unitOfWork deleteRef: aString. | ||
self activeWorkingCopyAction: [:workingCopy | | ||
workingCopy actionDeleteRef: aString] |
6 changes: 2 additions & 4 deletions
6
src/GitS-Core.package/GSBrowser.class/instance/actionExportActiveProjectToSar.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
actions | ||
actions-working-copy | ||
actionExportActiveProjectToSar | ||
| workingCopy | | ||
workingCopy := self activeWorkingCopyIfNilInformAnd: [^ self]. | ||
workingCopy writeSarToRequestedFileName. | ||
self activeWorkingCopyAction: #actionExportToSar. |
4 changes: 2 additions & 2 deletions
4
src/GitS-Core.package/GSBrowser.class/instance/actionFetchAll.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
actions | ||
actions-network | ||
actionFetchAll | ||
(self activeWorkingCopyIfNilInformAnd: [^ self]) fetchAll. | ||
self activeWorkingCopyAction: #actionFetchAll. |
13 changes: 0 additions & 13 deletions
13
...GitS-Core.package/GSBrowser.class/instance/actionFixup.keepCurrentMessage.editMessage..st
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
src/GitS-Core.package/GSBrowser.class/instance/actionForcePush..st
This file was deleted.
Oops, something went wrong.
5 changes: 2 additions & 3 deletions
5
src/GitS-Core.package/GSBrowser.class/instance/actionForcePush.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
actions | ||
actions-network | ||
actionForcePush | ||
self activeWorkingCopyIfNilInformAnd: [^ self]. | ||
self actionForcePush: (self currentBranchIfNilInformAnd: [^ self]). | ||
self activeWorkingCopyAction: #actionForcePush. |
5 changes: 3 additions & 2 deletions
5
src/GitS-Core.package/GSBrowser.class/instance/actionManageRemotes.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
actions | ||
actions-network | ||
actionManageRemotes | ||
GSRemotesBrowser openOnWorkingCopy: self activeWorkingCopy. | ||
self activeWorkingCopyAction: [:workingCopy | | ||
workingCopy actionManageRemotes]. |
8 changes: 0 additions & 8 deletions
8
src/GitS-Core.package/GSBrowser.class/instance/actionMaterializeCherryPick..st
This file was deleted.
Oops, something went wrong.
5 changes: 3 additions & 2 deletions
5
src/GitS-Core.package/GSBrowser.class/instance/actionMaterializeCommit..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
actions | ||
actions-materializing | ||
actionMaterializeCommit: aCommit | ||
self openDialogToMaterializeCommit: aCommit. | ||
self activeWorkingCopyAction: [:workingCopy | | ||
workingCopy actionMaterializeCommit: aCommit]. |
5 changes: 3 additions & 2 deletions
5
src/GitS-Core.package/GSBrowser.class/instance/actionMergeCommit..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
actions | ||
actions-merging | ||
actionMergeCommit: aCommit | ||
self mergeCommitIntoHead: aCommit. | ||
self activeWorkingCopyAction: [:workingCopy | | ||
workingCopy actionMergeCommit: aCommit]. |
5 changes: 3 additions & 2 deletions
5
src/GitS-Core.package/GSBrowser.class/instance/actionMergeRef..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
actions | ||
actions-refs | ||
actionMergeRef: aString | ||
self mergeRefIntoHead: aString. | ||
self activeWorkingCopyAction: [:workingCopy | | ||
workingCopy actionMergeRef: aString]. |
2 changes: 1 addition & 1 deletion
2
src/GitS-Core.package/GSBrowser.class/instance/actionNewProject.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
actions | ||
actions-working-copy | ||
actionNewProject | ||
self newProject: GSGitWorkingCopy newFromUserAndRegister. |
16 changes: 0 additions & 16 deletions
16
...ser.class/instance/actionPick.message.windowTitlePrefix.revert.amend.alwaysOpenDialog..st
This file was deleted.
Oops, something went wrong.
16 changes: 2 additions & 14 deletions
16
src/GitS-Core.package/GSBrowser.class/instance/actionPull.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,3 @@ | ||
actions | ||
actions-network | ||
actionPull | ||
| branch remoteNameAndRef remoteName remoteRef remote trackingRef | | ||
self activeWorkingCopyIfNilInformAnd: [^ self]. | ||
branch := self currentBranchIfNilInformAnd: [^ self]. | ||
remoteNameAndRef := self activeWorkingCopy upstreamRemoteNameAndRefFor: branch. | ||
remoteNameAndRef ifNil: [^ self]. | ||
remoteName := remoteNameAndRef key. | ||
remoteRef := remoteNameAndRef value. | ||
self activeWorkingCopy fetch: remoteName. | ||
remote := self unitOfWork remoteNamed: remoteName. | ||
trackingRef := remote trackingRefOf: remoteRef. | ||
(self unitOfWork objectReferenced: trackingRef) ifNil: [ | ||
^ self inform: 'Cannot pull, the branch does not exist on the remote.']. | ||
self mergeRefIntoHead: trackingRef. | ||
self activeWorkingCopyAction: #actionPull. |
3 changes: 0 additions & 3 deletions
3
src/GitS-Core.package/GSBrowser.class/instance/actionPush..st
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
src/GitS-Core.package/GSBrowser.class/instance/actionPush.force..st
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
actions | ||
actions-network | ||
actionPush | ||
self activeWorkingCopyIfNilInformAnd: [^ self]. | ||
self actionPush: (self currentBranchIfNilInformAnd: [^ self]). | ||
self activeWorkingCopyAction: #actionPush. |
15 changes: 3 additions & 12 deletions
15
src/GitS-Core.package/GSBrowser.class/instance/actionRebaseOntoCommit..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,4 @@ | ||
actions | ||
actions-rebasing | ||
actionRebaseOntoCommit: aCommit | ||
| workingCopy commits rebase | | ||
workingCopy := self activeWorkingCopyIfNilInformAnd: [^ self]. | ||
commits := (GitHistoryWalker new | ||
excludeAncestorsOf: aCommit; | ||
yourself) startingFrom: workingCopy headCommit. | ||
rebase := GSRebase newWithBrowser: self commits: commits reversed. | ||
rebase start then: [:x | | ||
workingCopy | ||
updateHeadToAndMaterialize: aCommit | ||
message: 'rebase (start): checkout ', aCommit hexHash. | ||
rebase open]. | ||
self activeWorkingCopyAction: [:workingCopy | | ||
workingCopy actionRebaseOntoCommit: aCommit]. |
2 changes: 1 addition & 1 deletion
2
src/GitS-Core.package/GSBrowser.class/instance/actionRefreshRefList.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
actions | ||
actions-refs | ||
actionRefreshRefList | ||
self changed: #refList. |
Oops, something went wrong.