Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of <see cref="CommitMessage"/> without footers
 /// </summary>
 /// <param name="header">The commit message's header (the value of the <see cref="Header"/> property).</param>
 /// <param name="body">The commit message's body (the value of the <see cref="Body"/> property).</param>
 public CommitMessage(CommitMessageHeader header, IReadOnlyList <string> body) : this(header, body, Array.Empty <CommitMessageFooter>())
 {
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of <see cref="CommitMessage"/>
 /// </summary>
 /// <param name="header">The commit message's header (the value of the <see cref="Header"/> property).</param>
 /// <param name="body">The commit message's body (the value of the <see cref="Body"/> property).</param>
 /// <param name="footers">The commit message's footers (the value of the <see cref="Footers"/> property).</param>
 public CommitMessage(CommitMessageHeader header, IReadOnlyList <string> body, IReadOnlyList <CommitMessageFooter> footers)
 {
     Header  = header ?? throw new ArgumentNullException(nameof(header));
     Body    = body ?? throw new ArgumentNullException(nameof(body));
     Footers = footers ?? throw new ArgumentNullException(nameof(footers));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of <see cref="CommitMessage"/> with an empty body and no footers
 /// </summary>
 /// <param name="header">The commit message's header (the value of the <see cref="Header"/> property).</param>
 public CommitMessage(CommitMessageHeader header) : this(header, Array.Empty <string>(), Array.Empty <CommitMessageFooter>())
 {
 }