Skip to content

Pulling a single file from a big remote repository #29

Description

@artlomov

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:

{{ <git@github.com: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 --remote=git@github.com:foliant-docs/foliant.git HEAD README.md | tar -xO > ./README.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions