@@ -55,6 +55,18 @@ public virtual IEnumerable<Reference> ListReferences(Remote remote)
55
55
return ListReferencesInternal ( remote . Url , null , new ProxyOptions ( ) ) ;
56
56
}
57
57
58
+ /// <summary>
59
+ /// List references in a <see cref="Remote"/> repository.
60
+ /// <para>
61
+ /// When the remote tips are ahead of the local ones, the retrieved
62
+ /// <see cref="DirectReference"/>s may point to non existing
63
+ /// <see cref="GitObject"/>s in the local repository. In that
64
+ /// case, <see cref="DirectReference.Target"/> will return <c>null</c>.
65
+ /// </para>
66
+ /// </summary>
67
+ /// <param name="remote">The <see cref="Remote"/> to list from.</param>
68
+ /// <param name="proxyOptions">Options for connecting through a proxy.</param>
69
+ /// <returns>The references in the <see cref="Remote"/> repository.</returns>
58
70
public virtual IEnumerable < Reference > ListReferences ( Remote remote , ProxyOptions proxyOptions )
59
71
{
60
72
Ensure . ArgumentNotNull ( remote , "remote" ) ;
@@ -82,6 +94,19 @@ public virtual IEnumerable<Reference> ListReferences(Remote remote, CredentialsH
82
94
return ListReferencesInternal ( remote . Url , credentialsProvider , new ProxyOptions ( ) ) ;
83
95
}
84
96
97
+ /// <summary>
98
+ /// List references in a <see cref="Remote"/> repository.
99
+ /// <para>
100
+ /// When the remote tips are ahead of the local ones, the retrieved
101
+ /// <see cref="DirectReference"/>s may point to non existing
102
+ /// <see cref="GitObject"/>s in the local repository. In that
103
+ /// case, <see cref="DirectReference.Target"/> will return <c>null</c>.
104
+ /// </para>
105
+ /// </summary>
106
+ /// <param name="remote">The <see cref="Remote"/> to list from.</param>
107
+ /// <param name="credentialsProvider">The <see cref="Func{Credentials}"/> used to connect to remote repository.</param>
108
+ /// <param name="proxyOptions">Options for connecting through a proxy.</param>
109
+ /// <returns>The references in the <see cref="Remote"/> repository.</returns>
85
110
public virtual IEnumerable < Reference > ListReferences ( Remote remote , CredentialsHandler credentialsProvider , ProxyOptions proxyOptions )
86
111
{
87
112
Ensure . ArgumentNotNull ( remote , "remote" ) ;
@@ -108,6 +133,18 @@ public virtual IEnumerable<Reference> ListReferences(string url)
108
133
return ListReferencesInternal ( url , null , new ProxyOptions ( ) ) ;
109
134
}
110
135
136
+ /// <summary>
137
+ /// List references in a remote repository.
138
+ /// <para>
139
+ /// When the remote tips are ahead of the local ones, the retrieved
140
+ /// <see cref="DirectReference"/>s may point to non existing
141
+ /// <see cref="GitObject"/>s in the local repository. In that
142
+ /// case, <see cref="DirectReference.Target"/> will return <c>null</c>.
143
+ /// </para>
144
+ /// </summary>
145
+ /// <param name="url">The url to list from.</param>
146
+ /// <param name="proxyOptions">Options for connecting through a proxy.</param>
147
+ /// <returns>The references in the remote repository.</returns>
111
148
public virtual IEnumerable < Reference > ListReferences ( string url , ProxyOptions proxyOptions )
112
149
{
113
150
Ensure . ArgumentNotNull ( url , "url" ) ;
@@ -135,6 +172,19 @@ public virtual IEnumerable<Reference> ListReferences(string url, CredentialsHand
135
172
return ListReferencesInternal ( url , credentialsProvider , new ProxyOptions ( ) ) ;
136
173
}
137
174
175
+ /// <summary>
176
+ /// List references in a remote repository.
177
+ /// <para>
178
+ /// When the remote tips are ahead of the local ones, the retrieved
179
+ /// <see cref="DirectReference"/>s may point to non existing
180
+ /// <see cref="GitObject"/>s in the local repository. In that
181
+ /// case, <see cref="DirectReference.Target"/> will return <c>null</c>.
182
+ /// </para>
183
+ /// </summary>
184
+ /// <param name="url">The url to list from.</param>
185
+ /// <param name="credentialsProvider">The <see cref="Func{Credentials}"/> used to connect to remote repository.</param>
186
+ /// <param name="proxyOptions">Options for connecting through a proxy.</param>
187
+ /// <returns>The references in the remote repository.</returns>
138
188
public virtual IEnumerable < Reference > ListReferences ( string url , CredentialsHandler credentialsProvider , ProxyOptions proxyOptions )
139
189
{
140
190
Ensure . ArgumentNotNull ( url , "url" ) ;
0 commit comments