66
66
/// this command should work with.
68
68
/// Finally this class stores a state telling whether it is allowed to call
69
/// <see cref="Sharpen.Callable{V}.Call()">Sharpen.Callable<V>.Call()</see>
69
/// <see cref="GitCommand{T}.Call()">GitCommand<T>.Call()</see>
70
70
/// on this instance. Instances of
71
71
/// <see cref="GitCommand{T}">GitCommand<T></see>
73
73
/// used for one single successful call to
74
/// <see cref="Sharpen.Callable{V}.Call()">Sharpen.Callable<V>.Call()</see>
74
/// <see cref="GitCommand{T}.Call()">GitCommand<T>.Call()</see>
75
75
/// . Afterwards this
76
76
/// instance may not be used anymore to set/modify any properties or to call
77
/// <see cref="Sharpen.Callable{V}.Call()">Sharpen.Callable<V>.Call()</see>
77
/// <see cref="GitCommand{T}.Call()">GitCommand<T>.Call()</see>
78
78
/// again. This is achieved by setting the
79
79
/// <see cref="GitCommand{T}.callable">GitCommand<T>.callable</see>
80
80
/// property to false after the successful execution of
81
/// <see cref="Sharpen.Callable{V}.Call()">Sharpen.Callable<V>.Call()</see>
81
/// <see cref="GitCommand{T}.Call()">GitCommand<T>.Call()</see>
83
83
/// check the state (by calling
84
84
/// <see cref="GitCommand{T}.CheckCallable()">GitCommand<T>.CheckCallable()</see>
85
85
/// ) before setting of
86
86
/// properties and inside
87
/// <see cref="Sharpen.Callable{V}.Call()">Sharpen.Callable<V>.Call()</see>
87
/// <see cref="GitCommand{T}.Call()">GitCommand<T>.Call()</see>
126
126
/// Set's the state which tells whether it is allowed to call
127
/// <see cref="Sharpen.Callable{V}.Call()">Sharpen.Callable<V>.Call()</see>
127
/// <see cref="GitCommand{T}.Call()">GitCommand<T>.Call()</see>
128
128
/// on this instance.
129
129
/// <see cref="GitCommand{T}.CheckCallable()">GitCommand<T>.CheckCallable()</see>
130
130
/// will throw an exception when
134
134
/// <param name="callable">
135
135
/// if <code>true</code> it is allowed to call
136
/// <see cref="Sharpen.Callable{V}.Call()">Sharpen.Callable<V>.Call()</see>
136
/// <see cref="GitCommand{T}.Call()">GitCommand<T>.Call()</see>
138
138
/// this instance.
170
/// <summary>Executes the command</summary>
171
/// <returns>T a result. Each command has its own return type</returns>
172
/// <exception cref="NGit.Api.Errors.GitAPIException">or subclass thereof when an error occurs
170
174
public abstract T Call();