File tree Expand file tree Collapse file tree 10 files changed +68
-68
lines changed Expand file tree Collapse file tree 10 files changed +68
-68
lines changed Original file line number Diff line number Diff line change 139
139
"Tree" : {
140
140
"type" : " object" ,
141
141
"required" : [
142
- " tracked "
142
+ " files "
143
143
],
144
144
"properties" : {
145
- "tracked " : {
145
+ "files " : {
146
146
"type" : " object" ,
147
147
"additionalProperties" : {
148
148
"$ref" : " #/definitions/FileContent"
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ impl TodoList {
105
105
. ok ( )
106
106
. wrap_err_with ( || format ! ( "Failed to remove {}" , relpath. display( ) ) ) ?;
107
107
}
108
- for ( relpath, content) in tree. tracked . iter ( ) {
108
+ for ( relpath, content) in tree. files . iter ( ) {
109
109
let path = cwd. join ( relpath) ;
110
110
if let Some ( parent) = path. parent ( ) {
111
111
std:: fs:: create_dir_all ( parent) . wrap_err_with ( || {
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ impl From<Tree> for Command {
64
64
#[ cfg_attr( feature = "serde" , serde( rename_all = "snake_case" ) ) ]
65
65
#[ cfg_attr( feature = "serde" , serde( deny_unknown_fields) ) ]
66
66
pub struct Tree {
67
- pub tracked : std:: collections:: HashMap < std:: path:: PathBuf , FileContent > ,
67
+ pub files : std:: collections:: HashMap < std:: path:: PathBuf , FileContent > ,
68
68
#[ cfg_attr( feature = "serde" , serde( default ) ) ]
69
69
pub message : Option < String > ,
70
70
#[ cfg_attr( feature = "serde" , serde( default ) ) ]
Original file line number Diff line number Diff line change 1
1
init : true
2
2
commands :
3
3
- tree :
4
- tracked :
4
+ files :
5
5
" file_a.txt " : " 1"
6
6
message : " 1"
7
7
- branch : initial
8
8
- tree :
9
- tracked :
9
+ files :
10
10
" file_a.txt " : " 2"
11
11
message : " 2"
12
12
- tree :
13
- tracked :
13
+ files :
14
14
" file_a.txt " : " 3"
15
15
message : " 3"
16
16
- branch : base
17
17
- label : base
18
18
19
19
- reset : base
20
20
- tree :
21
- tracked :
21
+ files :
22
22
" file_a.txt " : " 3"
23
23
" file_b.txt " : " 1"
24
24
message : " 4"
25
25
- tree :
26
- tracked :
26
+ files :
27
27
" file_a.txt " : " 3"
28
28
" file_b.txt " : " 2"
29
29
message : " 5"
30
30
- branch : master
31
31
- tree :
32
- tracked :
32
+ files :
33
33
" file_a.txt " : " 3"
34
34
" file_b.txt " : " 3"
35
35
message : " 6"
36
36
- branch : off_master
37
37
38
38
- reset : base
39
39
- tree :
40
- tracked :
40
+ files :
41
41
" file_a.txt " : " 3"
42
42
" file_c.txt " : " 1"
43
43
message : " 7"
44
44
- branch : feature1
45
45
- tree :
46
- tracked :
46
+ files :
47
47
" file_a.txt " : " 3"
48
48
" file_c.txt " : " 2"
49
49
message : " 8"
50
50
- tree :
51
- tracked :
51
+ files :
52
52
" file_a.txt " : " 3"
53
53
" file_c.txt " : " 3"
54
54
message : " 9"
55
55
- tree :
56
- tracked :
56
+ files :
57
57
" file_a.txt " : " 3"
58
58
" file_c.txt " : " 4"
59
59
message : " 10"
Original file line number Diff line number Diff line change 1
1
init : true
2
2
commands :
3
3
- tree :
4
- tracked :
4
+ files :
5
5
" file_a.txt " : " 1"
6
6
message : " 1"
7
7
- branch : initial
8
8
- tree :
9
- tracked :
9
+ files :
10
10
" file_a.txt " : " 2"
11
11
message : " 2"
12
12
- tree :
13
- tracked :
13
+ files :
14
14
" file_a.txt " : " 3"
15
15
message : " 3"
16
16
- branch : base
17
17
- label : base
18
18
19
19
- reset : base
20
20
- tree :
21
- tracked :
21
+ files :
22
22
" file_a.txt " : " 4"
23
23
message : " 4"
24
24
- tree :
25
- tracked :
25
+ files :
26
26
" file_a.txt " : " 5"
27
27
message : " 5"
28
28
- branch : master
29
29
30
30
- reset : base
31
31
- tree :
32
- tracked :
32
+ files :
33
33
" file_a.txt " : " 6"
34
34
message : " 7"
35
35
- branch : feature1
Original file line number Diff line number Diff line change 1
1
init : true
2
2
commands :
3
3
- tree :
4
- tracked :
4
+ files :
5
5
" file_a.txt " : " 3"
6
6
message : " commit 1"
7
7
- branch : base
8
8
- tree :
9
- tracked :
9
+ files :
10
10
" file_a.txt " : " 3"
11
11
" file_b.txt " : " 1"
12
12
message : " commit 2"
13
13
- tree :
14
- tracked :
14
+ files :
15
15
" file_a.txt " : " 3"
16
16
" file_b.txt " : " 2"
17
17
message : " master commit"
18
18
- branch : master
19
19
- tree :
20
- tracked :
20
+ files :
21
21
" file_a.txt " : " 3"
22
22
" file_b.txt " : " 3"
23
23
message : " feature1 commit 1"
24
24
- tree :
25
- tracked :
25
+ files :
26
26
" file_a.txt " : " 3"
27
27
" file_b.txt " : " 5"
28
28
message : " feature1 commit 2"
29
29
- branch : feature1
30
30
- tree :
31
- tracked :
31
+ files :
32
32
" file_a.txt " : " 3"
33
33
" file_c.txt " : " 1"
34
34
message : " fixup! feature1 commit 1"
35
35
- tree :
36
- tracked :
36
+ files :
37
37
" file_a.txt " : " 3"
38
38
" file_c.txt " : " 4"
39
39
message : " feature1 commit 3"
40
40
- tree :
41
- tracked :
41
+ files :
42
42
" file_a.txt " : " 3"
43
43
" file_c.txt " : " 1"
44
44
message : " fixup! feature1 commit 1"
45
45
- tree :
46
- tracked :
46
+ files :
47
47
" file_a.txt " : " 3"
48
48
" file_c.txt " : " 2"
49
49
message : " fixup! feature1 commit 2"
50
50
- tree :
51
- tracked :
51
+ files :
52
52
" file_a.txt " : " 3"
53
53
" file_c.txt " : " 4"
54
54
message : " feature2 commit"
55
55
- tree :
56
- tracked :
56
+ files :
57
57
" file_a.txt " : " 3"
58
58
" file_c.txt " : " 1"
59
59
message : " fixup! feature1 commit 1"
Original file line number Diff line number Diff line change 1
1
init : true
2
2
commands :
3
3
- tree :
4
- tracked :
4
+ files :
5
5
" file_a.txt " : " 1"
6
6
message : " 1"
7
7
- branch : initial
8
8
- tree :
9
- tracked :
9
+ files :
10
10
" file_a.txt " : " 2"
11
11
message : " 2"
12
12
- tree :
13
- tracked :
13
+ files :
14
14
" file_a.txt " : " 3"
15
15
message : " 3"
16
16
- branch : master
17
17
- label : master
18
18
19
19
- reset : master
20
20
- tree :
21
- tracked :
21
+ files :
22
22
" file_a.txt " : " 3"
23
23
" file_b.txt " : " 1"
24
24
message : " 7"
25
25
- tree :
26
- tracked :
26
+ files :
27
27
" file_a.txt " : " 3"
28
28
" file_b.txt " : " 2"
29
29
message : " 8"
@@ -32,7 +32,7 @@ commands:
32
32
# `git rebase master` caused the history to split
33
33
- reset : master
34
34
- tree :
35
- tracked :
35
+ files :
36
36
" file_a.txt " : " 3"
37
37
" file_b.txt " : " 1"
38
38
message : " 7"
Original file line number Diff line number Diff line change 1
1
init : true
2
2
commands :
3
3
- tree :
4
- tracked :
4
+ files :
5
5
" file_a.txt " : " 1"
6
6
message : " 1"
7
7
- branch : initial
8
8
- tree :
9
- tracked :
9
+ files :
10
10
" file_a.txt " : " 2"
11
11
message : " 2"
12
12
- tree :
13
- tracked :
13
+ files :
14
14
" file_a.txt " : " 3"
15
15
message : " 3"
16
16
- branch : master
17
17
- label : master
18
18
19
19
- reset : master
20
20
- tree :
21
- tracked :
21
+ files :
22
22
" file_a.txt " : " 3"
23
23
" file_b.txt " : " 1"
24
24
message : " 7"
25
25
- tree :
26
- tracked :
26
+ files :
27
27
" file_a.txt " : " 3"
28
28
" file_b.txt " : " 1"
29
29
" file_c.txt " : " 1"
@@ -33,7 +33,7 @@ commands:
33
33
# `git rebase master` caused the history to split
34
34
- reset : master
35
35
- tree :
36
- tracked :
36
+ files :
37
37
" file_a.txt " : " 3"
38
38
" file_b.txt " : " 1"
39
39
message : " 7"
Original file line number Diff line number Diff line change 1
1
init : true
2
2
commands :
3
3
- tree :
4
- tracked :
4
+ files :
5
5
" file_a.txt " : " 1"
6
6
message : " 1"
7
7
- branch : initial
8
8
- tree :
9
- tracked :
9
+ files :
10
10
" file_a.txt " : " 2"
11
11
message : " 2"
12
12
- tree :
13
- tracked :
13
+ files :
14
14
" file_a.txt " : " 3"
15
15
message : " 3"
16
16
- branch : base
17
17
- label : base
18
18
19
19
- reset : base
20
20
- tree :
21
- tracked :
21
+ files :
22
22
" file_a.txt " : " 3"
23
23
" file_b.txt " : " 1"
24
24
message : " 4"
25
25
- tree :
26
- tracked :
26
+ files :
27
27
" file_a.txt " : " 3"
28
28
" file_b.txt " : " 2"
29
29
message : " 5"
30
30
- tree :
31
- tracked :
31
+ files :
32
32
" file_a.txt " : " 3"
33
33
" file_b.txt " : " 3"
34
34
message : " 6"
35
35
- branch : old_master
36
36
# AzDO has the "semi-linear merge" type which rebases the branch before merging
37
37
- tree :
38
- tracked :
38
+ files :
39
39
" file_a.txt " : " 3"
40
40
" file_b.txt " : " 3"
41
41
" file_c.txt " : " 1"
42
42
message : " 7"
43
43
- tree :
44
- tracked :
44
+ files :
45
45
" file_a.txt " : " 3"
46
46
" file_b.txt " : " 3"
47
47
" file_c.txt " : " 2"
48
48
message : " 8"
49
49
- tree :
50
- tracked :
50
+ files :
51
51
" file_a.txt " : " 3"
52
52
" file_b.txt " : " 3"
53
53
" file_c.txt " : " 3"
54
54
message : " 9"
55
55
- tree :
56
- tracked :
56
+ files :
57
57
" file_a.txt " : " 3"
58
58
" file_b.txt " : " 3"
59
59
" file_c.txt " : " 4"
@@ -62,23 +62,23 @@ commands:
62
62
63
63
- reset : base
64
64
- tree :
65
- tracked :
65
+ files :
66
66
" file_a.txt " : " 3"
67
67
" file_c.txt " : " 1"
68
68
message : " 7"
69
69
- branch : feature1
70
70
- tree :
71
- tracked :
71
+ files :
72
72
" file_a.txt " : " 3"
73
73
" file_c.txt " : " 2"
74
74
message : " 8"
75
75
- tree :
76
- tracked :
76
+ files :
77
77
" file_a.txt " : " 3"
78
78
" file_c.txt " : " 3"
79
79
message : " 9"
80
80
- tree :
81
- tracked :
81
+ files :
82
82
" file_a.txt " : " 3"
83
83
" file_c.txt " : " 4"
84
84
message : " 10"
You can’t perform that action at this time.
0 commit comments