mirror of
https://github.com/TheLocehiliosan/yadm
synced 2025-12-06 14:42:14 +00:00
The new ignore command does the following: 1. Scans ~/.yadm/encrypt and adds its entries to ~/.gitignore. If ~/.gitignore doesn't exist, it's created. Any lines that begin with # or ! are skipped, as well. If the entry is already in ~/.gitignore (either as /file, !/file, file, or !file), it's skipped. While 'file' and '!file' could lead to unintended skips, not including them would more likely lead to unintended skips. 2. Scans the list of actual files found that match ~/.yadm/encrypt entries, and adds them to ~/.gitignore. For example, if ~/.yadm/encrypt contains .ssh/config##Linux, and .ssh/config exists, it adds .ssh/config to ~/.gitignore, unless the entry is already in ~/.gitignore (either as /file, !/file, file, or !file). - Since ~/.yadm/encrypt entries are rooted in $YADM_WORK without a leading slash, a leading slash is added to the ~/.gitignore entries to provide matching equivalency. - A new option --yadm-ignore allows the user to override the location of ~/.gitignore. - Uses sed to trim any leading or trailing whitespace when reading ~/.yadm/encrypt and ~/.gitignore. |
||
|---|---|---|
| completion | ||
| test | ||
| .gitattributes | ||
| .gitignore | ||
| .notes.md | ||
| .travis.yml | ||
| bootstrap | ||
| CHANGES | ||
| CONTRIBUTORS | ||
| Dockerfile | ||
| LICENSE | ||
| Makefile | ||
| README.md | ||
| yadm | ||
| yadm.1 | ||
| yadm.md | ||
| yadm.spec | ||
yadm - Yet Another Dotfiles Manager 
Features, usage, examples and installation instructions can be found on the website.