forked from jvdsandt/LibGit
-
Notifications
You must be signed in to change notification settings - Fork 24
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
10 changed files
with
57 additions
and
5 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
8 changes: 8 additions & 0 deletions
8
LibGit-Core.package/LGitRepository.class/instance/resetHardTo..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 @@ | ||
libgit-calls | ||
resetHardTo: target | ||
|
||
^ self | ||
resetHardTo: target | ||
checkoutOptions: (LGitCheckoutOptions defaults | ||
checkoutStrategy: LGitCheckoutStrategyEnum git_checkout_force; | ||
yourself) |
7 changes: 7 additions & 0 deletions
7
LibGit-Core.package/LGitRepository.class/instance/resetHardTo.checkoutOptions..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 @@ | ||
libgit-calls | ||
resetHardTo: target checkoutOptions: options | ||
|
||
^ self | ||
resetTo: target | ||
resetType: LGitResetTypeEnum git_reset_hard | ||
checkoutOptions: options |
6 changes: 6 additions & 0 deletions
6
LibGit-Core.package/LGitRepository.class/instance/resetTo.resetType.checkoutOptions..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 @@ | ||
libgit-calls | ||
resetTo: target resetType: aResetType checkoutOptions: checkout_opts | ||
|
||
^ self | ||
call: #(LGitReturnCodeEnum git_reset(self, LGitObject target, LGitResetTypeEnum aResetType, LGitCheckoutOptions *checkout_opts)) | ||
options: #() |
Empty file.
7 changes: 7 additions & 0 deletions
7
LibGit-Core.package/LGitResetTypeEnum.class/class/enumDecl.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 @@ | ||
enum declaration | ||
enumDecl | ||
^ #( | ||
GIT_RESET_SOFT 1 "Move the head to the given commit" | ||
GIT_RESET_MIXED 2 "SOFT plus reset index to the commit" | ||
GIT_RESET_HARD 3 "MIXED plus changes in working tree discarded" | ||
) |
5 changes: 5 additions & 0 deletions
5
LibGit-Core.package/LGitResetTypeEnum.class/class/git_reset_hard.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 @@ | ||
accessing-values | ||
git_reset_hard | ||
^ self basicNew | ||
value: 3; | ||
yourself |
5 changes: 5 additions & 0 deletions
5
LibGit-Core.package/LGitResetTypeEnum.class/class/git_reset_mixed.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 @@ | ||
accessing-values | ||
git_reset_mixed | ||
^ self basicNew | ||
value: 2; | ||
yourself |
5 changes: 5 additions & 0 deletions
5
LibGit-Core.package/LGitResetTypeEnum.class/class/git_reset_soft.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 @@ | ||
accessing-values | ||
git_reset_soft | ||
^ self basicNew | ||
value: 1; | ||
yourself |
11 changes: 11 additions & 0 deletions
11
LibGit-Core.package/LGitResetTypeEnum.class/properties.json
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 @@ | ||
{ | ||
"commentStamp" : "", | ||
"super" : "LGitExternalEnumerationUInt32", | ||
"category" : "LibGit-Core-FFI-Enums", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "LGitResetTypeEnum", | ||
"type" : "normal" | ||
} |