-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added PureGit[Local|Remote]Branch
- Loading branch information
Showing
3 changed files
with
81 additions
and
42 deletions.
There are no files selected for viewing
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,16 @@ | ||
Extension { #name : #PureGitBranch } | ||
|
||
{ #category : #'*GToolkit4Git' } | ||
PureGitBranch >> gtDetailsFor: composite [ | ||
<gtView> | ||
^ composite columnedList | ||
title: 'Details'; | ||
priority: 30; | ||
items: [ { | ||
{ 'Name' . self name ifNil: [ '' ] . self name }. | ||
{ 'Commit' . self commitId . self commit } | ||
} ]; | ||
column: 'key' text: #first; | ||
column: 'value' text: #second weight: 3; | ||
send: #last | ||
] |
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,47 @@ | ||
Extension { #name : #PureGitExamples } | ||
|
||
{ #category : #'*GToolkit4Git' } | ||
PureGitExamples >> exampleGToolkit [ | ||
<gtExample> | ||
<noTest> | ||
|
||
| repository | | ||
repository := PureGitRepository on: (IceRepository repositoryNamed: 'gtoolkit') location. | ||
|
||
self assert: repository exists. | ||
|
||
^ repository | ||
] | ||
|
||
{ #category : #'*GToolkit4Git' } | ||
PureGitExamples >> exampleGt4Git [ | ||
<gtExample> | ||
<noTest> | ||
|
||
| repository | | ||
repository := PureGitRepository on: (IceRepository repositoryNamed: 'gt4git') location. | ||
|
||
self assert: repository exists. | ||
|
||
^ repository | ||
] | ||
|
||
{ #category : #'*GToolkit4Git' } | ||
PureGitExamples >> exampleGt4GitRootCommit [ | ||
<gtExample> | ||
<noTest> | ||
|
||
| repository rootCommit | | ||
|
||
repository := self exampleGt4Git. | ||
|
||
rootCommit := repository resolveCommit: '9cfbcd6a921f237abc14446d565cc440a60793e8'. | ||
|
||
self assert: rootCommit isRoot. | ||
self assert: rootCommit id = '9cfbcd6a921f237abc14446d565cc440a60793e8'. | ||
self assert: rootCommit commitId = '9cfbcd6a921f237abc14446d565cc440a60793e8'. | ||
self assert: rootCommit author = 'George Ganea'. | ||
self assert: (rootCommit comment includesSubstring: 'created a new repo'). | ||
|
||
^ rootCommit | ||
] |
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