We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e1d463 commit 5dff8edCopy full SHA for 5dff8ed
1 file changed
Partas.GitNet/Program.fs
@@ -63,6 +63,11 @@ type GitNetRuntime with
63
member this.WriteToOutputAndCommit(content: string) =
64
this.WriteToOutputAndStage content
65
this.CommitChanges()
66
+ /// <summary>
67
+ /// Writes the given string to the output path in the <c>GitNetConfig</c> and commits the changes.
68
+ /// Returns a Result DU indicating whether the write succeeded or not.
69
+ /// </summary>
70
+ /// <param name="content">The content to write to the output path</param>
71
member this.TryWriteToOutputAndCommit(content: string) =
72
this.TryWriteToOutputAndStage content
73
|> Result.bind (fun _ -> this.TryCommitChanges())
0 commit comments