Skip to content

Commit 59ea94d

Browse files
committed
[DEBUG] trace rev-list stdin and stderr
1 parent 128834c commit 59ea94d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

git/rev_list_scanner.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ func NewRevListScanner(include, excluded []string, opt *ScanRefsOptions) (*RevLi
187187
}
188188

189189
tracerx.Printf("run_command: git %s", strings.Join(args, " "))
190+
tracerx.Printf(" stdin:\n%s", strings.Join(append(includeExcludeShas(include, excluded), opt.SkippedRefs...), "\n"))
190191
if err := cmd.Start(); err != nil {
191192
return nil, err
192193
}
@@ -204,6 +205,7 @@ func NewRevListScanner(include, excluded []string, opt *ScanRefsOptions) (*RevLi
204205
s: bufio.NewScanner(stdout),
205206
closeFn: func() error {
206207
msg := <-errorMessages
208+
tracerx.Printf(" stderr:\n%s", msg)
207209

208210
// First check if there was a non-zero exit code given
209211
// when Wait()-ing on the command execution.

0 commit comments

Comments
 (0)