gruntwork-io / fetch

Download files, folders, and release assets from a specific git commit, branch, or tag of public and private GitHub repos.
https://www.gruntwork.io/
MIT License
587 stars 90 forks source link

Implement git refs #79

Closed pete0emerson closed 3 years ago

pete0emerson commented 3 years ago

This closes #73

This implements a --ref flag which can be used instead of --tag, --branch, or --commit.

pete0emerson commented 3 years ago

This closes #73

pete0emerson commented 3 years ago

My only open question though is this: it seems like--ref supersedes --tag, --branch, and --commit, so why keep those flags around?

The only reason for keeping the other flags around is for backwards compatibility. Once any uses of it are moved over to --ref, those could be trashed. I'd do that in a separate PR.

ina-stoyanova commented 3 years ago

Looks good & easy to understand!