Skip to content

Commit 195afb9

Browse files
committed
add comment
1 parent 6fdab1a commit 195afb9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

services/pull/merge_prepare.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ type mergeContext struct {
3232
env []string
3333
}
3434

35+
// PrepareGitCmd prepares a git command with the correct directory, environment, and output buffers
36+
// This function can only be called with gitcmd.Run()
37+
// Do NOT use it with gitcmd.RunStd*() functions, otherwise it will panic
3538
func (ctx *mergeContext) PrepareGitCmd(cmd *gitcmd.Command) *gitcmd.Command {
3639
ctx.outbuf.Reset()
3740
ctx.errbuf.Reset()

0 commit comments

Comments
 (0)