ampproject / ampproject/amp.dev

Ignore imported documents in version control

Open
#2,442 2 comments 1 reaction 1 assignee Claimed by @matthiasrohmer View on GitHub
Category: Infrastructure P1: High Type: Update
Dominant language
HTML
Stars
600
Forks
675
PR merge metrics
No merged PRs in 30d

Description

Successor to #2277 via @fstanis and @pbakaus: rather than just having an easy to oversee comment block at the head of imported files the files should actually be ignored by version control.

This could either be achieved by dynamically writing the .gitignore file by using the information in platform/config/imports/spec.json. Though I fear that might cause additional confusion.

Another option would be to try to import all files into a common location and then ignore this location once - that's the solution I prefer and would implement.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.