From 33103e13b34d3f40fae507d657fc1750c66c3b8c Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Wed, 20 May 2026 17:12:31 +0000 Subject: object/tag: Rename Target to TargetID --- reachability/walk_expand_commits.go | 2 +- reachability/walk_expand_objects.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'reachability') diff --git a/reachability/walk_expand_commits.go b/reachability/walk_expand_commits.go index eaeb4e72..c612ddf1 100644 --- a/reachability/walk_expand_commits.go +++ b/reachability/walk_expand_commits.go @@ -50,7 +50,7 @@ func (walk *Walk) expandCommits(item walkItem) ([]walkItem, error) { return nil, err } - return []walkItem{{id: tag.Object().Target, want: objecttype.TypeInvalid}}, nil + return []walkItem{{id: tag.Object().TargetID, want: objecttype.TypeInvalid}}, nil case objecttype.TypeTree, objecttype.TypeBlob, objecttype.TypeInvalid, objecttype.TypeFuture, objecttype.TypeOfsDelta, objecttype.TypeRefDelta: return nil, &errors.ObjectTypeError{OID: item.id, Got: ty, Want: objecttype.TypeCommit} diff --git a/reachability/walk_expand_objects.go b/reachability/walk_expand_objects.go index 8b479021..8f0e1d02 100644 --- a/reachability/walk_expand_objects.go +++ b/reachability/walk_expand_objects.go @@ -60,7 +60,7 @@ func (walk *Walk) expandObjects(item walkItem) ([]walkItem, error) { return nil, err } - return []walkItem{{id: tag.Object().Target, want: tag.Object().TargetType}}, nil + return []walkItem{{id: tag.Object().TargetID, want: tag.Object().TargetType}}, nil case objecttype.TypeInvalid, objecttype.TypeFuture, objecttype.TypeOfsDelta, objecttype.TypeRefDelta: return nil, &errors.ObjectTypeError{OID: item.id, Got: ty, Want: item.want} } -- cgit v1.3.1-10-gc9f91