-
Notifications
You must be signed in to change notification settings - Fork 29
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
8 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
src/Squot.package/SqueakWorkingCopy.class/instance/ifRepositoryDoesNotExist..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,9 @@ | ||
testing | ||
ifRepositoryDoesNotExist: aBlock | ||
self repositoryExists ifTrue: [^ nil]. | ||
self inform: | ||
('The repository ''{1}'' has disappeared from the disk (it was at {2}). ', | ||
'The repository will now be removed from the Git Browser.' | ||
format: {self name. self repository baseDir}). | ||
self unregister. | ||
^ aBlock value |
3 changes: 3 additions & 0 deletions
3
src/Squot.package/SqueakWorkingCopy.class/instance/repository.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 @@ | ||
accessing | ||
repository | ||
^ self fsgitRepository repository |
3 changes: 3 additions & 0 deletions
3
src/Squot.package/SqueakWorkingCopy.class/instance/repositoryExists.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 @@ | ||
accessing | ||
repositoryExists | ||
^ self repository exists |
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
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 @@ | ||
ui | ||
commitList | ||
self ifRepositoryDoesNotExist: [^ {}]. | ||
self activeWorkingCopy ifNil: [^ {}]. | ||
^ self withUnitOfWork: [GitHistoryWalker new startingFromAll: self commitListStartingCommits] |
3 changes: 3 additions & 0 deletions
3
src/Squot.package/SquotBrowser.class/instance/ifRepositoryDoesNotExist..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 @@ | ||
ui | ||
ifRepositoryDoesNotExist: aBlock | ||
^ (self activeWorkingCopy ifNil: [^ self]) ifRepositoryDoesNotExist: aBlock |
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
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