-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is encrypt list automatically ignored? #69
Comments
They are not automatically ignored. As far as I'm aware, Git only allows for a single I'll think about it some more. Perhaps I'll think of a suitable way. |
What about appending the contents of |
I got a good noob-run through using yadm to preserve config before wiping a system last night, and I had to double-check myself each time I saw one of the files I needed to encrypt in More explicit reporting of the status of encrypted filesI think it'd help to have either a separate command ( This information would be most useful appended/inlined for relevant git commands:
Backstops for things that are easy to missIt's probably more frustrating to try and satisfy a git hook than to be able to see relevant status information before commit, but I think a good pre-commit hook that objects if a commit includes files matching encrypt would go a long way towards preventing hard-to-fix accidents. It might also lay a foundation for more pre-commit sanity checks that improve UX around less-serious consistency issues (like objecting if |
I'm repeating this process again as I clean up to prepare to replace my laptop. A few stray thoughts... It's fairly obvious, but I've found some grep oneliners useful for sorting this out. I've been using WRT to eventual code changes here, I wondered if there's an existing list (or if it would be worth maintaining one) of well-known dotfiles and flagging files that shouldn't be included, or should only be included if encrypted, etc. This could power some nice UX improvements like:
|
Append the contents of .config/yadm/encrypt to the repo's git ignore list. This is to help prevent accidentally committing unencrypted sensitive data.
Automatic ignoring of patterns found in |
I agree that smarter handling of encrypted files would be nice. What about something like |
Update version number and update documentation * Support XDG base directory specification * Redesign alternate processing * Add built-in default template processor * Allow storing alternates in yadm dir (#90) * Add support for j2cli template processor * Ignore encrypted files (#69) * Support DISTRO in alternates (#72) * Support `source` in templates (#163) * Change yadm.cygwin-copy to yadm.alt-copy * Support `-b <branch>` when cloning (#133) * Support includes for j2-based templates (#114) * Remove stale/invalid linked alternates (#65) * Add support for Mingw/Msys (#102) * Allow `-l` to pass thru to the `yadm config` command * Improve processing of `yadm/encrypt` * Fix bugs in legacy alternate processing * Fix bug with hidden private files * Improve support for older versions of Git * Add upgrade command
I've created a new issue, #386 from a non-addressed idea in this issue. |
Are encrypt list files automatically yadm-git-ignored? If not, why not? Seems like that would prevent accidental uploading of intentionally encrypted files.
The text was updated successfully, but these errors were encountered: