-
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
62 changed files
with
196 additions
and
55 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
src/FileSystem-Git.package/GitCommit.class/instance/firstParent.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 @@ | ||
public-accessing | ||
firstParent | ||
^ self parents ifNotEmpty: #first ifEmpty: [nil] |
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
5 changes: 3 additions & 2 deletions
5
...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,4 +1,5 @@ | ||
actions | ||
actionChooseNewRepositoryLocationForActiveProject | ||
(self activeWorkingCopyIfNilInformAnd: [^ self]) requestAndMoveToNewRepositoryLocation. | ||
self everythingChanged. | ||
self activeWorkingCopyAction: [:workingCopy | | ||
workingCopy requestAndMoveToNewRepositoryLocation. | ||
self everythingChanged]. |
3 changes: 1 addition & 2 deletions
3
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,4 +1,3 @@ | ||
actions | ||
actionCommit | ||
self activeWorkingCopyIfNilInformAnd: [^ self]. | ||
self openDialogToCommitImageWithInitialMessage: ''. | ||
self activeWorkingCopyAction: #openDialogToCommitImage. |
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 | ||
actionCompareCommitToImage: aCommit | ||
self activeWorkingCopyIfNilInformAnd: [^ self]. | ||
self openDialogToShowChangeSetsFromImageTo: aCommit. | ||
self activeWorkingCopyAction: [:workingCopy | | ||
workingCopy openDialogToShowChangeSetsFromImageTo: aCommit]. |
6 changes: 2 additions & 4 deletions
6
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,6 +1,4 @@ | ||
actions | ||
actionCompareCommitToParent: aCommit | ||
| parent | | ||
self activeWorkingCopyIfNilInformAnd: [^ self]. | ||
parent := aCommit parents ifNotEmpty: #first ifEmpty: [nil]. | ||
self openDialogToShowChangeSetsFromCommit: parent to: aCommit. | ||
self activeWorkingCopyAction: [:workingCopy | | ||
workingCopy openDialogToCompareCommitToParent: aCommit] |
3 changes: 2 additions & 1 deletion
3
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,3 +1,4 @@ | ||
actions | ||
actionCreateBranchAtCommit: aCommit | ||
^ self actionCreateBranchAtCommit: aCommit fromRef: nil | ||
self activeWorkingCopyAction: [:workingCopy | | ||
workingCopy createBranchAtCommit: aCommit]. |
5 changes: 2 additions & 3 deletions
5
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,5 +1,4 @@ | ||
actions | ||
actionCreateBranchAtRef: aString | ||
| commit | | ||
commit := (self commitReferencedBy: aString to: 'create a branch') ifNil: [^ nil]. | ||
^ self actionCreateBranchAtCommit: commit fromRef: aString | ||
self activeWorkingCopyAction: [:workingCopy | | ||
workingCopy createBranchAtRef: aString]. |
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
6 changes: 6 additions & 0 deletions
6
src/GitS-Core.package/GSBrowser.class/instance/activeWorkingCopyAction..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,6 @@ | ||
actions | ||
activeWorkingCopyAction: aBlock | ||
self activeWorkingCopy ifNil: [ | ||
self inform: 'Please select a project first.'. | ||
^ self]. | ||
aBlock value: self activeWorkingCopy. |
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
2 changes: 1 addition & 1 deletion
2
src/GitS-Core.package/GSGitWorkingCopy.class/instance/basicHeadRef.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 @@ | ||
refs | ||
head | ||
basicHeadRef | ||
^ self unitOfWork ref: self headRefName |
2 changes: 1 addition & 1 deletion
2
src/GitS-Core.package/GSGitWorkingCopy.class/instance/branchName..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 @@ | ||
refs | ||
branches | ||
branchName: aString | ||
^ self branchesBaseName, aString |
2 changes: 1 addition & 1 deletion
2
src/GitS-Core.package/GSGitWorkingCopy.class/instance/branchesBaseName.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 @@ | ||
refs | ||
branches | ||
branchesBaseName | ||
^ self refsBaseName, 'heads/' |
11 changes: 11 additions & 0 deletions
11
...GitS-Core.package/GSGitWorkingCopy.class/instance/checkSetUpstreamForCreatedBranch.to..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,11 @@ | ||
upstream | ||
checkSetUpstreamForCreatedBranch: aString to: anotherString | ||
(self isRemoteRef: anotherString) ifFalse: [^ self]. | ||
(self confirm: | ||
('You created a branch {1} from the remote-tracking branch {2}. ', | ||
'Do you want to set the upstream branch of {1} to {2}?' | ||
format: ({aString printString. anotherString printString} collect: [:each | GitReference shortName: each]))) | ||
ifFalse: [^ self]. | ||
self | ||
setUpstreamRemoteNameAndRef: (self splitRemoteRef: anotherString) | ||
for: aString. |
6 changes: 6 additions & 0 deletions
6
src/GitS-Core.package/GSGitWorkingCopy.class/instance/cherryPick..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,6 @@ | ||
git-operations | ||
cherryPick: aCommit | ||
^ (self pendingChangeSetsForPick: aCommit) | ||
prefixWindowTitle: 'Cherry-pick '; | ||
initialMessage: aCommit message; | ||
commit |
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
8 changes: 8 additions & 0 deletions
8
src/GitS-Core.package/GSGitWorkingCopy.class/instance/commitReferencedBy.to..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 @@ | ||
refs | ||
commitReferencedBy: aString to: anotherString | ||
| object | | ||
object := self unitOfWork objectReferenced: aString. | ||
(object isKindOf: GitCommit) ifTrue: [^ object]. | ||
self inform: ('Cannot {1} at {2}, because it does not refer to a commit' | ||
format: {anotherString. aString printString}). | ||
^ nil |
3 changes: 3 additions & 0 deletions
3
src/GitS-Core.package/GSGitWorkingCopy.class/instance/compareTitleFrom.to..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 @@ | ||
dialog | ||
compareTitleFrom: anObject to: anotherObject | ||
^ 'Show changes from {1} to {2}' format: {self displayName: anObject. self displayName: anotherObject} |
3 changes: 3 additions & 0 deletions
3
src/GitS-Core.package/GSGitWorkingCopy.class/instance/createBranchAtCommit..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 @@ | ||
branches | ||
createBranchAtCommit: aCommit | ||
^ self createBranchAtCommit: aCommit fromRef: nil |
8 changes: 8 additions & 0 deletions
8
src/GitS-Core.package/GSGitWorkingCopy.class/instance/createBranchAtCommit.fromRef..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 @@ | ||
branches | ||
createBranchAtCommit: aCommit fromRef: aStringOrNil | ||
| name branch | | ||
name := self requestBranchNameFor: 'a branch' at: aCommit fromRef: aStringOrNil. | ||
name isEmptyOrNil ifTrue: [^ nil]. | ||
branch := self createBranchNamed: name atCommit: aCommit. | ||
aStringOrNil ifNotNil: [self checkSetUpstreamForCreatedBranch: branch to: aStringOrNil]. | ||
^ branch |
5 changes: 5 additions & 0 deletions
5
src/GitS-Core.package/GSGitWorkingCopy.class/instance/createBranchAtRef..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,5 @@ | ||
branches | ||
createBranchAtRef: aString | ||
| commit | | ||
commit := (self commitReferencedBy: aString to: 'create a branch') ifNil: [^ nil]. | ||
^ self createBranchAtCommit: commit fromRef: aString |
4 changes: 2 additions & 2 deletions
4
...y.class/instance/createBranchNamed.at..st → ...s/instance/createBranchNamed.atCommit..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
2 changes: 1 addition & 1 deletion
2
src/GitS-Core.package/GSGitWorkingCopy.class/instance/currentHeadTarget.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 @@ | ||
refs | ||
head | ||
currentHeadTarget | ||
^ self headRef target |
2 changes: 1 addition & 1 deletion
2
src/GitS-Core.package/GSGitWorkingCopy.class/instance/currentSymbolicHeadTarget.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 @@ | ||
refs | ||
head | ||
currentSymbolicHeadTarget | ||
^ self headRef isSymbolic | ||
ifTrue: [self currentHeadTarget] | ||
|
7 changes: 7 additions & 0 deletions
7
src/GitS-Core.package/GSGitWorkingCopy.class/instance/displayName..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,7 @@ | ||
dialog | ||
displayName: anObject | ||
anObject = #image ifTrue: [^ 'the image']. | ||
(anObject isKindOf: GitCommit) ifTrue: [^ anObject showOneLine]. | ||
anObject ifNil: [^ '[no commit]']. | ||
(anObject isKindOf: String) ifTrue: [^ GitReference shortName: anObject]. | ||
self error: 'unknown object supplied to displayName:'. |
2 changes: 1 addition & 1 deletion
2
src/GitS-Core.package/GSGitWorkingCopy.class/instance/gitBranchName..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 @@ | ||
refs | ||
git-branches | ||
gitBranchName: aString | ||
^ self gitBranchesBaseName, aString |
2 changes: 1 addition & 1 deletion
2
src/GitS-Core.package/GSGitWorkingCopy.class/instance/gitBranchesBaseName.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 @@ | ||
refs | ||
git-branches | ||
gitBranchesBaseName | ||
^ 'refs/heads/' |
2 changes: 1 addition & 1 deletion
2
src/GitS-Core.package/GSGitWorkingCopy.class/instance/headCommit.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 @@ | ||
refs | ||
head | ||
headCommit | ||
^ self unitOfWork objectReferenced: self headRefName |
2 changes: 1 addition & 1 deletion
2
src/GitS-Core.package/GSGitWorkingCopy.class/instance/headCommitHash.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 @@ | ||
refs | ||
head | ||
headCommitHash | ||
^ self unitOfWork resolveRef: self headRefName |
2 changes: 1 addition & 1 deletion
2
src/GitS-Core.package/GSGitWorkingCopy.class/instance/headCommitIfNilInformAnd..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
2 changes: 1 addition & 1 deletion
2
src/GitS-Core.package/GSGitWorkingCopy.class/instance/headFSCommit.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 @@ | ||
refs | ||
head | ||
headFSCommit | ||
^ self fsCommitFrom: (self headCommit ifNil: [^ nil]) |
2 changes: 1 addition & 1 deletion
2
src/GitS-Core.package/GSGitWorkingCopy.class/instance/headFSCommitIfNilInformAnd..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 @@ | ||
refs | ||
head | ||
headFSCommitIfNilInformAnd: aBlock | ||
^ self fsCommitFrom: (self headCommitIfNilInformAnd: [^ aBlock value]) |
2 changes: 1 addition & 1 deletion
2
src/GitS-Core.package/GSGitWorkingCopy.class/instance/headRef.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 @@ | ||
refs | ||
head | ||
headRef | ||
^ self basicHeadRef ifNil: [ | ||
self unitOfWork | ||
|
2 changes: 1 addition & 1 deletion
2
src/GitS-Core.package/GSGitWorkingCopy.class/instance/headRefBasename.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 @@ | ||
refs | ||
head | ||
headRefBasename | ||
^ 'HEAD' |
2 changes: 1 addition & 1 deletion
2
src/GitS-Core.package/GSGitWorkingCopy.class/instance/headRefName.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 @@ | ||
refs | ||
head | ||
headRefName | ||
^ self refName: self headRefBasename |
2 changes: 1 addition & 1 deletion
2
src/GitS-Core.package/GSGitWorkingCopy.class/instance/isGitBranchRef..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 @@ | ||
refs | ||
git-branches | ||
isGitBranchRef: aString | ||
^ aString beginsWith: self gitBranchesBaseName |
2 changes: 1 addition & 1 deletion
2
src/GitS-Core.package/GSGitWorkingCopy.class/instance/isHeadDetached.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 @@ | ||
refs | ||
head | ||
isHeadDetached | ||
^ self headRef isSymbolic not |
2 changes: 1 addition & 1 deletion
2
src/GitS-Core.package/GSGitWorkingCopy.class/instance/isReferencedByHead..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
2 changes: 1 addition & 1 deletion
2
src/GitS-Core.package/GSGitWorkingCopy.class/instance/isRemoteRef..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 @@ | ||
refs | ||
remotes | ||
isRemoteRef: aString | ||
^ (aString beginsWith: self remoteRefBaseName) | ||
and: [(aString occurrencesOf: $/) >= ((self remoteRefBaseName occurrencesOf: $/) + 1)] |
2 changes: 1 addition & 1 deletion
2
src/GitS-Core.package/GSGitWorkingCopy.class/instance/isSomeHead..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 @@ | ||
refs | ||
head | ||
isSomeHead: aString | ||
| refBasename | | ||
refBasename := aString allButFirst: (aString lastIndexOf: $/). | ||
|
2 changes: 1 addition & 1 deletion
2
src/GitS-Core.package/GSGitWorkingCopy.class/instance/isSqueakBranchRef..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 @@ | ||
refs | ||
branches | ||
isSqueakBranchRef: aString | ||
^ aString beginsWith: self branchesBaseName |
3 changes: 3 additions & 0 deletions
3
src/GitS-Core.package/GSGitWorkingCopy.class/instance/openDialogToCommitImage.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 @@ | ||
dialog | ||
openDialogToCommitImage | ||
^ self openDialogToCommitImageWithInitialMessage: '' |
7 changes: 7 additions & 0 deletions
7
...ore.package/GSGitWorkingCopy.class/instance/openDialogToCommitImageWithInitialMessage..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,7 @@ | ||
dialog | ||
openDialogToCommitImageWithInitialMessage: aString | ||
^ self pendingChangeSetsFromHeadCommitToImage | ||
windowTitle: 'Changes to commit'; | ||
initialMessage: aString; | ||
alwaysOpenDialog; | ||
commit |
5 changes: 5 additions & 0 deletions
5
src/GitS-Core.package/GSGitWorkingCopy.class/instance/openDialogToCompareCommit.to..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,5 @@ | ||
dialog | ||
openDialogToCompareCommit: aCommit to: anotherCommit | ||
^ (self pendingChangeSetsFromCommit: anotherCommit to: aCommit) | ||
windowTitle: (self compareTitleFrom: aCommit to: anotherCommit); | ||
show |
5 changes: 5 additions & 0 deletions
5
src/GitS-Core.package/GSGitWorkingCopy.class/instance/openDialogToCompareCommitToImage..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,5 @@ | ||
dialog | ||
openDialogToCompareCommitToImage: aCommit | ||
^ (self pendingChangeSetsFromImageToCommit: aCommit) | ||
windowTitle: (self compareTitleFrom: #image to: aCommit); | ||
show |
3 changes: 3 additions & 0 deletions
3
src/GitS-Core.package/GSGitWorkingCopy.class/instance/openDialogToCompareCommitToParent..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 @@ | ||
dialog | ||
openDialogToCompareCommitToParent: aCommit | ||
^ self openDialogToCompareCommit: aCommit to: aCommit firstParent |
6 changes: 6 additions & 0 deletions
6
src/GitS-Core.package/GSGitWorkingCopy.class/instance/pendingChangeSets..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,6 @@ | ||
pending-changes | ||
pendingChangeSets: aCollection | ||
^ GSChangesToCommit new | ||
workingCopy: self; | ||
changeSets: aCollection; | ||
yourself |
8 changes: 8 additions & 0 deletions
8
src/GitS-Core.package/GSGitWorkingCopy.class/instance/pendingChangeSetsForPick..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 @@ | ||
pending-changes | ||
pendingChangeSetsForPick: aCommit | ||
^ (self pendingChangeSets: | ||
(self | ||
changeSetsToMergeCommitIntoHead: aCommit | ||
withBase: aCommit firstParent)) | ||
windowTitle: aCommit showOneLine; | ||
yourself |
3 changes: 3 additions & 0 deletions
3
...itS-Core.package/GSGitWorkingCopy.class/instance/pendingChangeSetsFromCommit.toCommit..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 @@ | ||
pending-changes | ||
pendingChangeSetsFromCommit: aCommit toCommit: anotherCommit | ||
^ self pendingChangeSets: (self changeSetsFromCommit: aCommit toCommit: anotherCommit) |
3 changes: 3 additions & 0 deletions
3
src/GitS-Core.package/GSGitWorkingCopy.class/instance/pendingChangeSetsFromCommitToImage..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 @@ | ||
pending-changes | ||
pendingChangeSetsFromCommitToImage: aCommit | ||
^ self pendingChangeSets: (self changeSetsFromCommitToImage: aCommit) |
Oops, something went wrong.