@@ -171,24 +171,26 @@ func (p *RepositoryPool) Add(repo repository) error {
171171 return nil
172172}
173173
174- // AddGit checks if a git repository can be opened and adds it to the pool. It
175- // also sets its path as ID.
174+ // AddGit adds a git repository to the pool. It also sets its path as ID.
176175func (p * RepositoryPool ) AddGit (path string ) error {
177176 return p .AddGitWithID (path , path )
178177}
179178
180- // AddGitWithID checks if a git repository can be opened and adds it to the
181- // pool. ID should be specified.
179+ // AddGitWithID adds a git repository to the pool. ID should be specified.
182180func (p * RepositoryPool ) AddGitWithID (id , path string ) error {
183181 return p .Add (gitRepo (id , path ))
184182}
185183
186- // AddSivaFile adds to the pool the given file if it's a siva repository,
187- // that is, has the .siva extension
184+ // AddSivaFile adds a siva file to the pool. It also sets its path as ID.
188185func (p * RepositoryPool ) AddSivaFile (path string ) error {
189186 return p .Add (sivaRepo (path , path ))
190187}
191188
189+ // AddSivaFileWithID adds a siva file to the pool. ID should be specified.
190+ func (p * RepositoryPool ) AddSivaFileWithID (id , path string ) error {
191+ return p .Add (sivaRepo (id , path ))
192+ }
193+
192194// GetPos retrieves a repository at a given position. If the position is
193195// out of bounds it returns io.EOF.
194196func (p * RepositoryPool ) GetPos (pos int ) (* Repository , error ) {
0 commit comments