File tree Expand file tree Collapse file tree 2 files changed +24
-10
lines changed Expand file tree Collapse file tree 2 files changed +24
-10
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,24 @@ public bool EnableSignOffForCommit
112
112
set ;
113
113
} = false ;
114
114
115
+ public bool IncludeUntrackedWhenStash
116
+ {
117
+ get ;
118
+ set ;
119
+ } = true ;
120
+
121
+ public bool OnlyStagedWhenStash
122
+ {
123
+ get ;
124
+ set ;
125
+ } = false ;
126
+
127
+ public bool KeepIndexWhenStash
128
+ {
129
+ get ;
130
+ set ;
131
+ } = false ;
132
+
115
133
public void PushCommitMessage ( string message )
116
134
{
117
135
var existIdx = CommitMessages . IndexOf ( message ) ;
Original file line number Diff line number Diff line change @@ -18,31 +18,27 @@ public bool HasSelectedFiles
18
18
19
19
public bool IncludeUntracked
20
20
{
21
- get ;
22
- set ;
21
+ get => _repo . Settings . IncludeUntrackedWhenStash ;
22
+ set => _repo . Settings . IncludeUntrackedWhenStash = value ;
23
23
}
24
24
25
25
public bool OnlyStaged
26
26
{
27
- get ;
28
- set ;
27
+ get => _repo . Settings . OnlyStagedWhenStash ;
28
+ set => _repo . Settings . OnlyStagedWhenStash = value ;
29
29
}
30
30
31
31
public bool KeepIndex
32
32
{
33
- get ;
34
- set ;
33
+ get => _repo . Settings . KeepIndexWhenStash ;
34
+ set => _repo . Settings . KeepIndexWhenStash = value ;
35
35
}
36
36
37
37
public StashChanges ( Repository repo , List < Models . Change > changes , bool hasSelectedFiles )
38
38
{
39
39
_repo = repo ;
40
40
_changes = changes ;
41
-
42
41
HasSelectedFiles = hasSelectedFiles ;
43
- IncludeUntracked = true ;
44
- OnlyStaged = false ;
45
- KeepIndex = false ;
46
42
47
43
View = new Views . StashChanges ( ) { DataContext = this } ;
48
44
}
You can’t perform that action at this time.
0 commit comments