feat: add option to fetch remote change history (tags) for GitSource dependencies

PiperOrigin-RevId: 963471221
This commit is contained in:
Google APIs 2026-08-12 08:50:47 -07:00 committed by Copybara-Service
parent 4a028b9983
commit f76fc6dcdd

View file

@ -1312,6 +1312,12 @@ message Dependency {
// Required. Where should the files be placed on the worker.
string dest_path = 5 [(google.api.field_behavior) = REQUIRED];
// Optional. True if remote tags should be fetched too (default false).
// Note: when depth is 1 (default), git fetch only retrieves tags pointing
// to commits within the shallow boundary. Set depth to -1 to fetch all
// historical tags.
bool fetch_tags = 6 [(google.api.field_behavior) = OPTIONAL];
}
// A repository for a git source.