namespace LibGit2Sharp { /// /// Provides optional additional information to commit creation. /// By default, a new commit will be created (instead of amending the /// HEAD commit) and an empty commit which is unchanged from the current /// HEAD is disallowed. /// public sealed class CommitOptions { /// /// Initializes a new instance of the class. /// /// Default behavior: /// The message is prettified. /// No automatic removal of comments is performed. /// /// public CommitOptions() { PrettifyMessage = true; } /// /// True to amend the current pointed at by , false otherwise. /// public bool AmendPreviousCommit { get; set; } /// /// True to allow creation of an empty , false otherwise. /// public bool AllowEmptyCommit { get; set; } /// /// True to prettify the message by stripping leading and trailing empty lines, trailing whitespace, and collapsing consecutive empty lines, false otherwise. /// public bool PrettifyMessage { get; set; } /// /// The starting line char used to identify commentaries in the Commit message during the prettifying of the Commit message. If set (usually to '#'), all lines starting with this char will be removed from the message before the Commit is done. /// This property will only be considered when PrettifyMessage is set to true. /// public char? CommentaryChar { get; set; } } }