diff options
author | nulltoken <emeric.fermas@gmail.com> | 2012-04-21 23:38:59 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2012-04-28 05:32:20 +0400 |
commit | 1658e84d428824aae8f62e8be5e70c4664e2663d (patch) | |
tree | 4d3119fe4c21dfad2f3ef0fbe2be763675fb350c | |
parent | 2401133ef6f365d3aae26a020f2754584852e558 (diff) |
Improve documentation related to the creation of Commits
-rw-r--r-- | LibGit2Sharp/CommitCollection.cs | 4 | ||||
-rw-r--r-- | LibGit2Sharp/IQueryableCommitCollection.cs | 6 | ||||
-rw-r--r-- | LibGit2Sharp/RepositoryExtensions.cs | 12 |
3 files changed, 16 insertions, 6 deletions
diff --git a/LibGit2Sharp/CommitCollection.cs b/LibGit2Sharp/CommitCollection.cs index 4c8698d9..6d6186df 100644 --- a/LibGit2Sharp/CommitCollection.cs +++ b/LibGit2Sharp/CommitCollection.cs @@ -126,11 +126,13 @@ namespace LibGit2Sharp /// <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. /// </summary> /// <param name = "message">The description of why a change was made to the repository.</param> /// <param name = "author">The <see cref = "Signature" /> of who made the change.</param> /// <param name = "committer">The <see cref = "Signature" /> of who added the change to the repository.</param> - /// <param name="amendPreviousCommit">True to amend the current <see cref="Commit"/> pointed at by <see cref="Repository.Head"/>, false otherwise.</param> + /// <param name = "amendPreviousCommit">True to amend the current <see cref = "Commit"/> pointed at by <see cref = "Repository.Head"/>, false otherwise.</param> /// <returns>The generated <see cref = "Commit" />.</returns> public Commit Create(string message, Signature author, Signature committer, bool amendPreviousCommit) { diff --git a/LibGit2Sharp/IQueryableCommitCollection.cs b/LibGit2Sharp/IQueryableCommitCollection.cs index af4c5933..d596d77a 100644 --- a/LibGit2Sharp/IQueryableCommitCollection.cs +++ b/LibGit2Sharp/IQueryableCommitCollection.cs @@ -10,12 +10,14 @@ ICommitCollection QueryBy(Filter filter); /// <summary> - /// Stores the content of the content as a new <see cref = "Commit" /> into the repository. + /// 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. /// </summary> /// <param name = "message">The description of why a change was made to the repository.</param> /// <param name = "author">The <see cref = "Signature" /> of who made the change.</param> /// <param name = "committer">The <see cref = "Signature" /> of who added the change to the repository.</param> - /// <param name="amendPreviousCommit">True to amend the current <see cref="Commit"/> pointed at by <see cref="Repository.Head"/>, false otherwise.</param> + /// <param name = "amendPreviousCommit">True to amend the current <see cref = "Commit"/> pointed at by <see cref = "Repository.Head"/>, false otherwise.</param> /// <returns>The generated <see cref = "Commit" />.</returns> Commit Create(string message, Signature author, Signature committer, bool amendPreviousCommit); } diff --git a/LibGit2Sharp/RepositoryExtensions.cs b/LibGit2Sharp/RepositoryExtensions.cs index 017cdba0..47a4aa16 100644 --- a/LibGit2Sharp/RepositoryExtensions.cs +++ b/LibGit2Sharp/RepositoryExtensions.cs @@ -113,11 +113,13 @@ namespace LibGit2Sharp /// <summary> /// Stores the content of the <see cref = "Repository.Index" /> as a new <see cref = "LibGit2Sharp.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. /// <para>Both the Author and Committer will be guessed from the Git configuration. An exception will be raised if no configuration is reachable.</para> /// </summary> /// <param name = "repository">The <see cref = "Repository" /> being worked with.</param> /// <param name = "message">The description of why a change was made to the repository.</param> - /// <param name="amendPreviousCommit">True to amend the current <see cref="LibGit2Sharp.Commit"/> pointed at by <see cref="Repository.Head"/>, false otherwise.</param> + /// <param name = "amendPreviousCommit">True to amend the current <see cref = "LibGit2Sharp.Commit"/> pointed at by <see cref = "Repository.Head"/>, false otherwise.</param> /// <returns>The generated <see cref = "LibGit2Sharp.Commit" />.</returns> public static Commit Commit(this Repository repository, string message, bool amendPreviousCommit = false) { @@ -128,12 +130,14 @@ namespace LibGit2Sharp /// <summary> /// Stores the content of the <see cref = "Repository.Index" /> as a new <see cref = "LibGit2Sharp.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. /// <para>The Committer will be guessed from the Git configuration. An exception will be raised if no configuration is reachable.</para> /// </summary> /// <param name = "repository">The <see cref = "Repository" /> being worked with.</param> /// <param name = "author">The <see cref = "Signature" /> of who made the change.</param> /// <param name = "message">The description of why a change was made to the repository.</param> - /// <param name="amendPreviousCommit">True to amend the current <see cref="LibGit2Sharp.Commit"/> pointed at by <see cref="Repository.Head"/>, false otherwise.</param> + /// <param name = "amendPreviousCommit">True to amend the current <see cref = "LibGit2Sharp.Commit"/> pointed at by <see cref = "Repository.Head"/>, false otherwise.</param> /// <returns>The generated <see cref = "LibGit2Sharp.Commit" />.</returns> public static Commit Commit(this Repository repository, string message, Signature author, bool amendPreviousCommit = false) { @@ -144,12 +148,14 @@ namespace LibGit2Sharp /// <summary> /// Stores the content of the <see cref = "Repository.Index" /> as a new <see cref = "LibGit2Sharp.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. /// </summary> /// <param name = "repository">The <see cref = "Repository" /> being worked with.</param> /// <param name = "author">The <see cref = "Signature" /> of who made the change.</param> /// <param name = "committer">The <see cref = "Signature" /> of who added the change to the repository.</param> /// <param name = "message">The description of why a change was made to the repository.</param> - /// <param name="amendPreviousCommit">True to amend the current <see cref="LibGit2Sharp.Commit"/> pointed at by <see cref="Repository.Head"/>, false otherwise.</param> + /// <param name = "amendPreviousCommit">True to amend the current <see cref = "LibGit2Sharp.Commit"/> pointed at by <see cref = "Repository.Head"/>, false otherwise.</param> /// <returns>The generated <see cref = "LibGit2Sharp.Commit" />.</returns> public static Commit Commit(this Repository repository, string message, Signature author, Signature committer, bool amendPreviousCommit = false) { |