Skip to content

Commit 8504123

Browse files
authored
Merge pull request #101 from Rinzwind/add-git-stash-save-pharo12
Backport addition of support for using ‘git_stash_save’ to Pharo 12
2 parents 3ee1de2 + 3357cf5 commit 8504123

File tree

10 files changed

+60
-0
lines changed

10 files changed

+60
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
operations
2+
stash: message signature: signature flags: flags
3+
4+
| stash |
5+
6+
stash := LGitId new.
7+
self withReturnHandlerDo: [
8+
self stash_save: stash signature: signature message: message flags: flags ].
9+
^ stash
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
libgit - calls
2+
stash_save: id signature: signature message: message flags: flags
3+
4+
^ self
5+
ffiCallSafely: #(LGitReturnCodeEnum git_stash_save(LGitId * id, self, LGitSignature * signature, String message, LGitStashFlagsEnum flags))
6+
options: #()

LibGit-Core.package/LGitStashFlagsEnum.class/README.md

Whitespace-only changes.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
enum declaration
2+
enumDecl
3+
4+
^ #(
5+
GIT_STASH_DEFAULT 0
6+
GIT_STASH_KEEP_INDEX 1
7+
GIT_STASH_INCLUDE_UNTRACKED 2
8+
GIT_STASH_INCLUDE_IGNORED 4
9+
GIT_STASH_KEEP_ALL 8 )
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
accessing - values
2+
git_stash_default
3+
^ self basicNew
4+
value: 0;
5+
yourself
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
accessing - values
2+
git_stash_include_ignored
3+
^ self basicNew
4+
value: 4;
5+
yourself
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
accessing - values
2+
git_stash_include_untracked
3+
^ self basicNew
4+
value: 2;
5+
yourself
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
accessing - values
2+
git_stash_keep_all
3+
^ self basicNew
4+
value: 8;
5+
yourself
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
accessing - values
2+
git_stash_keep_index
3+
^ self basicNew
4+
value: 1;
5+
yourself
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"commentStamp" : "",
3+
"super" : "LGitExternalEnumerationUInt32",
4+
"category" : "LibGit-Core-FFI-Enums",
5+
"classinstvars" : [ ],
6+
"pools" : [ ],
7+
"classvars" : [ ],
8+
"instvars" : [ ],
9+
"name" : "LGitStashFlagsEnum",
10+
"type" : "normal"
11+
}

0 commit comments

Comments
 (0)