@@ -30,11 +30,13 @@ internal PackBuilder(Repository repository)
30
30
/// </summary>
31
31
/// <param name="gitObject">The object to be inserted.</param>
32
32
/// <exception cref="ArgumentNullException">if the gitObject is null</exception>
33
- public void Add < T > ( T gitObject ) where T : GitObject
33
+ public PackBuilder Add < T > ( T gitObject ) where T : GitObject
34
34
{
35
35
Ensure . ArgumentNotNull ( gitObject , "gitObject" ) ;
36
36
37
37
Add ( gitObject . Id ) ;
38
+
39
+ return this ;
38
40
}
39
41
40
42
/// <summary>
@@ -43,11 +45,13 @@ public void Add<T>(T gitObject) where T : GitObject
43
45
/// </summary>
44
46
/// <param name="gitObject">The object to be inserted recursively.</param>
45
47
/// <exception cref="ArgumentNullException">if the gitObject is null</exception>
46
- public void AddRecursively < T > ( T gitObject ) where T : GitObject
48
+ public PackBuilder AddRecursively < T > ( T gitObject ) where T : GitObject
47
49
{
48
50
Ensure . ArgumentNotNull ( gitObject , "gitObject" ) ;
49
51
50
52
AddRecursively ( gitObject . Id ) ;
53
+
54
+ return this ;
51
55
}
52
56
53
57
/// <summary>
@@ -56,11 +60,13 @@ public void AddRecursively<T>(T gitObject) where T : GitObject
56
60
/// </summary>
57
61
/// <param name="id">The object ID to be inserted.</param>
58
62
/// <exception cref="ArgumentNullException">if the id is null</exception>
59
- public void Add ( ObjectId id )
63
+ public PackBuilder Add ( ObjectId id )
60
64
{
61
65
Ensure . ArgumentNotNull ( id , "id" ) ;
62
66
63
67
Proxy . git_packbuilder_insert ( packBuilderHandle , id , null ) ;
68
+
69
+ return this ;
64
70
}
65
71
66
72
/// <summary>
@@ -69,11 +75,13 @@ public void Add(ObjectId id)
69
75
/// </summary>
70
76
/// <param name="id">The object ID to be recursively inserted.</param>
71
77
/// <exception cref="ArgumentNullException">if the id is null</exception>
72
- public void AddRecursively ( ObjectId id )
78
+ public PackBuilder AddRecursively ( ObjectId id )
73
79
{
74
80
Ensure . ArgumentNotNull ( id , "id" ) ;
75
81
76
82
Proxy . git_packbuilder_insert_recur ( packBuilderHandle , id , null ) ;
83
+
84
+ return this ;
77
85
}
78
86
79
87
/// <summary>
0 commit comments