Alternative to .gitkeep #15

Closed
opened 2021-01-03 02:40:17 +00:00 by jolheiser · 0 comments
jolheiser commented 2021-01-03 02:40:17 +00:00 (Migrated from gitea.com)

A .gitkeep file is regularly used to maintain an empty directory within a git repository (because git doesn't like empty directories).

Rather than hijack an already unofficial file, I propose to use a .tmplkeep file.

Notably, this will produce the same effect in source control (a virtually empty directory), however when tmpl executes the template, .tmplkeep files will not be created.

This allows templates to set up directory structures where some directories may start out empty (staging, example structure, etc.)

A `.gitkeep` file is regularly used to maintain an empty directory within a git repository (because git doesn't like empty directories). Rather than hijack an already unofficial file, I propose to use a `.tmplkeep` file. Notably, this will produce the same effect in source control (a virtually empty directory), **however** when `tmpl` executes the template, `.tmplkeep` files will **not** be created. This allows templates to set up directory structures where some directories may start out empty (staging, example structure, etc.)
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: jolheiser/tmpl#15
There is no content yet.