Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusDoe committed Dec 2, 2024
1 parent a92348c commit 004da15
Show file tree
Hide file tree
Showing 305 changed files with 796 additions and 1,074 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
actions
actionExportToSar
self actionExportToSarNamed: self requestSarFileName.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
sar
writeSarToFileNamed: aString
actions
actionExportToSarNamed: aString
self buildSar writeToFileNamed: aString.
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.
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 src/GitS-Core.package/GSBaseWorkingCopy.class/instance/rename.st

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
"uninstallSquot" : "mad 10/9/2024 21:51",
"unregister:" : "mad 10/6/2024 21:07" },
"instance" : {
"actionExportToSar" : "mad 12/1/2024 18:00",
"actionExportToSarNamed:" : "mad 12/1/2024 18:00",
"actionRemove" : "mad 12/2/2024 00:12",
"actionRename" : "mad 12/2/2024 00:14",
"addMapper:" : "mad 10/6/2024 21:13",
"allMappers" : "mad 10/6/2024 21:13",
"basicName:" : "mad 10/6/2024 21:13",
Expand Down Expand Up @@ -55,12 +59,9 @@
"nameIfTakenDeriveAndInform:" : "mad 10/6/2024 21:18",
"register" : "mad 10/6/2024 21:18",
"removeMapper:" : "mad 10/6/2024 21:18",
"rename" : "mad 10/6/2024 21:18",
"replaceMapper:with:" : "mad 10/6/2024 21:18",
"requestOptionForUnmappedPath:mapper:additionalOptions:" : "mad 10/9/2024 16:01",
"requestSarFileName" : "mad 10/6/2024 21:19",
"requestUnmappedPathWithTitle:initialAnswer:" : "mad 10/6/2024 21:19",
"requestUnmappedPathWithTitle:initialAnswer:additionalOptions:" : "mad 10/9/2024 16:01",
"unregister" : "mad 10/6/2024 21:19",
"writeSarToFileNamed:" : "mad 10/6/2024 21:20",
"writeSarToRequestedFileName" : "mad 10/6/2024 21:20" } }
"unregister" : "mad 10/6/2024 21:19" } }
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].
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
actions
actions-working-copy
actionCloneProject
self newProject: GSGitWorkingCopy cloneFromUserAndRegister.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
actions
actions-committing
actionCommit
self activeWorkingCopyAction: #openDialogToCommitImage.
self activeWorkingCopyAction: #actionCommit.
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].
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]
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:.
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].
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].
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].
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].
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].
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].
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]
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.
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.

This file was deleted.

This file was deleted.

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.
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].

This file was deleted.

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].
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].
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].
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
actions
actions-working-copy
actionNewProject
self newProject: GSGitWorkingCopy newFromUserAndRegister.

This file was deleted.

16 changes: 2 additions & 14 deletions src/GitS-Core.package/GSBrowser.class/instance/actionPull.st
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 src/GitS-Core.package/GSBrowser.class/instance/actionPush..st

This file was deleted.

This file was deleted.

5 changes: 2 additions & 3 deletions src/GitS-Core.package/GSBrowser.class/instance/actionPush.st
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.
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].
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
actions
actions-refs
actionRefreshRefList
self changed: #refList.
Loading

0 comments on commit 004da15

Please sign in to comment.