diff options
author | Paulo Gomes <pjbgf@linux.com> | 2023-11-15 22:01:03 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-15 22:01:03 +0000 |
commit | 63b586b9559508baf7442c39db3327c91d37486c (patch) | |
tree | ddb2dbc15aaae84cad245a777282ab6f88517c35 /plumbing/format/pktline/scanner.go | |
parent | eb1b04dbe45f7c9e866eb52e8ccccf3885a06217 (diff) | |
parent | c3843453da23043b4a4dcb9f7968f72c1e4ae8cc (diff) | |
download | go-git-63b586b9559508baf7442c39db3327c91d37486c.tar.gz |
Merge pull request #916 from aymanbagabas/trace
git: add tracer package
Diffstat (limited to 'plumbing/format/pktline/scanner.go')
-rw-r--r-- | plumbing/format/pktline/scanner.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plumbing/format/pktline/scanner.go b/plumbing/format/pktline/scanner.go index 99aab46..86068af 100644 --- a/plumbing/format/pktline/scanner.go +++ b/plumbing/format/pktline/scanner.go @@ -3,6 +3,8 @@ package pktline import ( "errors" "io" + + "github.com/go-git/go-git/v5/internal/trace" ) const ( @@ -65,6 +67,7 @@ func (s *Scanner) Scan() bool { return false } s.payload = s.payload[:l] + trace.Packet.Printf("packet: < %04x %s", l, s.payload) return true } |