You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// A Repository is the primary interface into a git repository
7
+
/// </summary>
8
+
publicinterfaceIRepository:IDisposable
9
+
{
10
+
/// <summary>
11
+
/// Shortcut to return the branch pointed to by HEAD
12
+
/// </summary>
13
+
/// <returns></returns>
14
+
BranchHead{get;}
15
+
16
+
/// <summary>
17
+
/// Provides access to the configuration settings for this repository.
18
+
/// </summary>
19
+
ConfigurationConfig{get;}
20
+
21
+
/// <summary>
22
+
/// Gets the index.
23
+
/// </summary>
24
+
IndexIndex{get;}
25
+
26
+
/// <summary>
27
+
/// Lookup and enumerate references in the repository.
28
+
/// </summary>
29
+
ReferenceCollectionRefs{get;}
30
+
31
+
/// <summary>
32
+
/// Lookup and manage remotes in the repository.
33
+
/// </summary>
34
+
RemoteCollectionRemotes{get;}
35
+
36
+
/// <summary>
37
+
/// Lookup and enumerate commits in the repository.
38
+
/// Iterating this collection directly starts walking from the HEAD.
39
+
/// </summary>
40
+
IQueryableCommitLogCommits{get;}
41
+
42
+
/// <summary>
43
+
/// Lookup and enumerate branches in the repository.
44
+
/// </summary>
45
+
BranchCollectionBranches{get;}
46
+
47
+
/// <summary>
48
+
/// Lookup and enumerate tags in the repository.
49
+
/// </summary>
50
+
TagCollectionTags{get;}
51
+
52
+
/// <summary>
53
+
/// Provides high level information about this repository.
54
+
/// </summary>
55
+
RepositoryInformationInfo{get;}
56
+
57
+
/// <summary>
58
+
/// Provides access to diffing functionalities to show changes between the working tree and the index or a tree, changes between the index and a tree, changes between two trees, or changes between two files on disk.
59
+
/// </summary>
60
+
DiffDiff{get;}
61
+
62
+
/// <summary>
63
+
/// Checkout the specified branch.
64
+
/// </summary>
65
+
/// <param name="branch">The branch to checkout.</param>
66
+
/// <returns>The branch.</returns>
67
+
BranchCheckout(Branchbranch);
68
+
69
+
/// <summary>
70
+
/// Checkout the specified branch, reference or SHA.
71
+
/// </summary>
72
+
/// <param name = "shaOrReferenceName">The sha of the commit, a canonical reference name or the name of the branch to checkout.</param>
73
+
/// <returns>The new HEAD.</returns>
74
+
BranchCheckout(stringshaOrReferenceName);
75
+
76
+
/// <summary>
77
+
/// Try to lookup an object by its <see cref = "ObjectId" /> and <see cref = "GitObjectType" />. If no matching object is found, null will be returned.
78
+
/// </summary>
79
+
/// <param name = "id">The id to lookup.</param>
80
+
/// <param name = "type">The kind of GitObject being looked up</param>
81
+
/// <returns>The <see cref = "GitObject" /> or null if it was not found.</returns>
/// 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.
86
+
/// </summary>
87
+
/// <param name = "shaOrReferenceName">The sha or reference canonical name to lookup.</param>
88
+
/// <param name = "type">The kind of <see cref = "GitObject" /> being looked up</param>
89
+
/// <returns>The <see cref = "GitObject" /> or null if it was not found.</returns>
/// Stores the content of the <see cref = "Repository.Index" /> as a new <see cref = "Commit" /> into the repository.
94
+
/// The tip of the <see cref = "Repository.Head"/> will be used as the parent of this new Commit.
95
+
/// Once the commit is created, the <see cref = "Repository.Head"/> will move forward to point at it.
96
+
/// </summary>
97
+
/// <param name = "message">The description of why a change was made to the repository.</param>
98
+
/// <param name = "author">The <see cref = "Signature" /> of who made the change.</param>
99
+
/// <param name = "committer">The <see cref = "Signature" /> of who added the change to the repository.</param>
100
+
/// <param name = "amendPreviousCommit">True to amend the current <see cref = "Commit"/> pointed at by <see cref = "Repository.Head"/>, false otherwise.</param>
/// <param name = "message">The description of why a change was made to the repository.</param>
122
122
/// <param name = "amendPreviousCommit">True to amend the current <see cref = "LibGit2Sharp.Commit"/> pointed at by <see cref = "Repository.Head"/>, false otherwise.</param>
/// <param name = "message">The description of why a change was made to the repository.</param>
140
140
/// <param name = "amendPreviousCommit">True to amend the current <see cref = "LibGit2Sharp.Commit"/> pointed at by <see cref = "Repository.Head"/>, false otherwise.</param>
0 commit comments