tsrc icon indicating copy to clipboard operation
tsrc copied to clipboard

Permit tags on manifest files for "tsrc init"

Open mattblovell opened this issue 5 years ago • 1 comments

The tsrc init command line current supports a --branch option.

Has there been any discussion of supporting a --tag command-line option when initializing, permitting one to pull a tagged version of the manifest file?

This question is semi-related to the topic in #48 (since a snapshot could be stored as a tagged manifest file).

mattblovell avatar Aug 04 '20 19:08 mattblovell

Has there been any discussion of supporting a --tag command-line option when initializing, permitting one to pull a tagged version of the manifest file?

I don't think so. Do you want to start working on a PR?

We already have some code to reset repos in the workspace to a given tag (in tsrc/workspace/cloner.py and tsrc/workspace/syncer.py) so it should be possible to implement the same thing for the local manifest (in tsrc/workspace/local_manifest).

dmerejkowsky avatar Aug 05 '20 07:08 dmerejkowsky