Skip to content

Use dfetch for tracking upstream template #334

@spoorcc

Description

@spoorcc

Some projects are based off off other "template" projects.

Template

  • somefolder
    • someFile
  • .someconfig
  • README.md

Child project

  • someotherfolder
    • someFile
  • somefolder
    • someFile
  • .someconfig
  • README.md (own README)
  • dfetch.yaml

It would be nice if a user could have a child project based off off certain parts of a parent template project.
In above example someFolder and .someconfig should be synced, but the README not and the own files/folders should be preserved.

This would make it possible to keep tracking the template and move along with any updates.

dfetch update template-parent

With the following manifest:

  - name: template-parent
    dst: .                                                          # explicitly tell to use root of project
    url: https://github.com/dfetch/template.git       
    src:                                                            # mark (multiple) desired files/folders
    - somefolder
    - .someconfig
    clear: false                                                    # don't clear dest folder before update
  • Is the src field ok to repurpose for this?
  • Is there a better alternative than clear: false? Maybe "overlaying" is a more concise description for a user?

I'm open to any suggestions!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions