diff options
Diffstat (limited to 'LibGit2Sharp/IRepository.cs')
-rw-r--r-- | LibGit2Sharp/IRepository.cs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/LibGit2Sharp/IRepository.cs b/LibGit2Sharp/IRepository.cs index fcc45b7f..24f41031 100644 --- a/LibGit2Sharp/IRepository.cs +++ b/LibGit2Sharp/IRepository.cs @@ -106,6 +106,36 @@ namespace LibGit2Sharp GitObject Lookup(string objectish, GitObjectType type = GitObjectType.Any); /// <summary> + /// Try to lookup an object by its <see cref = "ObjectId" />. If no matching object is found, null will be returned. + /// </summary> + /// <param name = "id">The id to lookup.</param> + /// <returns>The <see cref = "GitObject" /> or null if it was not found.</returns> + GitObject Lookup(ObjectId id); + + /// <summary> + /// Try to lookup an object by its sha or a reference canonical name. If no matching object is found, null will be returned. + /// </summary> + /// <param name = "objectish">A revparse spec for the object to lookup.</param> + /// <returns>The <see cref = "GitObject" /> or null if it was not found.</returns> + GitObject Lookup(string objectish); + + /// <summary> + /// Try to lookup an object by its <see cref = "ObjectId" /> and <see cref = "GitObjectType" />. If no matching object is found, null will be returned. + /// </summary> + /// <param name = "id">The id to lookup.</param> + /// <param name = "type">The kind of GitObject being looked up</param> + /// <returns>The <see cref = "GitObject" /> or null if it was not found.</returns> + GitObject Lookup(ObjectId id, ObjectType type); + + /// <summary> + /// Try to lookup an object by its sha or a reference canonical name and <see cref = "GitObjectType" />. If no matching object is found, null will be returned. + /// </summary> + /// <param name = "objectish">A revparse spec for the object to lookup.</param> + /// <param name = "type">The kind of <see cref = "GitObject" /> being looked up</param> + /// <returns>The <see cref = "GitObject" /> or null if it was not found.</returns> + GitObject Lookup(string objectish, ObjectType type); + + /// <summary> /// Stores the content of the <see cref = "Repository.Index" /> as a new <see cref = "Commit" /> into the repository. /// The tip of the <see cref = "Repository.Head"/> will be used as the parent of this new Commit. /// Once the commit is created, the <see cref = "Repository.Head"/> will move forward to point at it. |