Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Make Template Depth Configurable #3

Open
edm00se opened this issue Oct 30, 2018 · 3 comments
Open

Enhancement: Make Template Depth Configurable #3

edm00se opened this issue Oct 30, 2018 · 3 comments

Comments

@edm00se
Copy link

edm00se commented Oct 30, 2018

Currently, when the extraction of the template is performed, the --strip=3 depth is set statically.

I'm working on a project that makes use of a template at the root of the project repository, so being able to set the depth to 1 makes sense. Bottom line, it'd be great for this to be a configurable option.

Thanks for making a great utility.

@pomber
Copy link

pomber commented May 25, 2019

Why not get the depth from paths.length?

@edm00se
Copy link
Author

edm00se commented May 25, 2019

@pomber there may be something to that, I’ll have another look when I get a chance.

@edm00se
Copy link
Author

edm00se commented Jun 7, 2019

That worked out pretty well and seems a much cleaner way of going about it. I've updated my PR (#4) to reflect it. Thanks @pomber.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants