-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathoptions.e
More file actions
99 lines (71 loc) · 1.38 KB
/
options.e
File metadata and controls
99 lines (71 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
note
description: "Summary description for {OPTIONS}."
date: "$Date$"
revision: "$Revision$"
class
OPTIONS
create
make
feature
make
local
status: GIT_STATUS
do
create status_options.make
create status
if status.git_status_options_init (status_options, 1) < 0 then
print ("%NCannot initializes a git_status_options with default values")
{EXCEPTIONS}.die (1)
end
create repodir.make_from_string (".")
set_format ({FORMAT_ENUM}.format_short)
end
feature -- Access
status_options: GIT_STATUS_OPTIONS_STRUCT_API
repodir: STRING
pathspec: detachable STRING
--
npaths: INTEGER
format: INTEGER
zterm: INTEGER
show_branch: BOOLEAN
show_submodule: BOOLEAN
repeat: INTEGER
feature -- Change Element
set_status_option (a_opt: like status_options)
do
status_options := a_opt
end
set_repodir (a_val: like repodir)
do
repodir := a_val
end
set_pathspec (a_val: like pathspec)
do
pathspec := a_val
end
set_npaths (a_val: like npaths)
do
npaths := a_val
end
set_format (a_val: like format)
do
format := a_val
end
set_zterm (a_val: like zterm)
do
zterm := a_val
end
set_show_branch (a_val: like show_branch)
do
show_branch := a_val
end
set_show_submodule (a_val: like show_submodule)
do
show_submodule := a_val
end
set_repeat (a_val: like repeat)
do
repeat := a_val
end
end