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

Pulling a single file from a big remote repository #29

Open
artlomov opened this issue Nov 10, 2017 · 0 comments
Open

Pulling a single file from a big remote repository #29

artlomov opened this issue Nov 10, 2017 · 0 comments

Comments

@artlomov
Copy link
Member

It’s often required to include the content of a single file from remote repository into a document. The repo can contain a lot of files, and the files can be large.

When we use built-in includes, the source repository will be fully cloned, as far as I know:

{{ <[email protected]:foliant-docs/foliant.git>README.md }}

It seems useful to get an optional possibility to pull certain files from big remote repositories by using commands like this:

$ git archive [email protected]:foliant-docs/foliant.git HEAD README.md | tar -xO > ./README.md
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

1 participant