In pipelines we need to add some options to modify default checkout:
- Path of the reference repo to use during clone: to use baregit repo path
- Sparse checkout path
these options are available for checkout in default and in pipeline step. It would be nice to have them in Declarative pipeline in options for pipeline.