~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/ngit/NGit/NGit.Api/LsRemoteCommand.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
 
96
96
                /// <summary>Include refs/heads in references results</summary>
97
97
                /// <param name="heads"></param>
98
 
                public virtual void SetHeads(bool heads)
 
98
                /// <returns>
 
99
                /// 
 
100
                /// <code>this</code>
 
101
                /// </returns>
 
102
                public virtual NGit.Api.LsRemoteCommand SetHeads(bool heads)
99
103
                {
100
104
                        this.heads = heads;
 
105
                        return this;
101
106
                }
102
107
 
103
108
                /// <summary>Include refs/tags in references results</summary>
104
109
                /// <param name="tags"></param>
105
 
                public virtual void SetTags(bool tags)
 
110
                /// <returns>
 
111
                /// 
 
112
                /// <code>this</code>
 
113
                /// </returns>
 
114
                public virtual NGit.Api.LsRemoteCommand SetTags(bool tags)
106
115
                {
107
116
                        this.tags = tags;
 
117
                        return this;
108
118
                }
109
119
 
110
120
                /// <summary>The full path of git-upload-pack on the remote host</summary>
111
121
                /// <param name="uploadPack"></param>
112
 
                public virtual void SetUploadPack(string uploadPack)
 
122
                /// <returns>
 
123
                /// 
 
124
                /// <code>this</code>
 
125
                /// </returns>
 
126
                public virtual NGit.Api.LsRemoteCommand SetUploadPack(string uploadPack)
113
127
                {
114
128
                        this.uploadPack = uploadPack;
 
129
                        return this;
115
130
                }
116
131
 
117
132
                /// <summary>
127
142
                /// <returns>a collection of references in the remote repository</returns>
128
143
                /// <exception cref="NGit.Api.Errors.InvalidRemoteException">when called with an invalid remote uri
129
144
                ///     </exception>
130
 
                /// <exception cref="NGit.Api.Errors.JGitInternalException">
131
 
                /// a low-level exception of JGit has occurred. The original
132
 
                /// exception can be retrieved by calling
133
 
                /// <see cref="System.Exception.InnerException()">System.Exception.InnerException()</see>
134
 
                /// .
135
 
                /// </exception>
 
145
                /// <exception cref="NGit.Api.Errors.TransportException">for errors that occurs during transport
 
146
                ///     </exception>
136
147
                /// <exception cref="NGit.Api.Errors.GitAPIException"></exception>
137
148
                public override ICollection<Ref> Call()
138
149
                {
190
201
                                throw new JGitInternalException(JGitText.Get().exceptionCaughtDuringExecutionOfLsRemoteCommand
191
202
                                        , e);
192
203
                        }
193
 
                        catch (TransportException e)
 
204
                        catch (NGit.Errors.TransportException e)
194
205
                        {
195
 
                                throw new TransportException(JGitText.Get().exceptionCaughtDuringExecutionOfLsRemoteCommand
196
 
                                        , e);
 
206
                                throw new NGit.Errors.TransportException(e.Message, e);
197
207
                        }
198
208
                        finally
199
209
                        {