1
0
mirror of https://github.com/TheLocehiliosan/yadm synced 2024-10-27 20:34:27 +00:00
Commit Graph

581 Commits

Author SHA1 Message Date
Tim Byrne
c4b419d98e
Add --version and --help as yadm internal commands (#267) 2020-12-21 17:06:14 -06:00
Tim Byrne
e3d2ea2863
Combine local and assignments where appropriate 2020-12-21 17:06:14 -06:00
Tim Byrne
6b068a141d
Remove superfluous f-strings 2020-12-21 17:06:14 -06:00
Tim Byrne
c8d516c67d
Bump versions of required linters 2020-12-21 17:06:14 -06:00
Ross Smith II
e2d9c06168
Fix paths in yadm help output
For completeness, I added the bootstrap script too.
2020-12-18 09:44:01 -08:00
Tim Byrne
80d8949850
Update regex to match horizontal white space only 2020-12-06 22:36:12 -06:00
Tim Byrne
4b5f16d73a
Improve support for default branches (#231, #232)
Unless a branch is specified, the default remote HEAD is used during
clone. Also a local master branch is not created if it is not the remote
HEAD.
2020-12-06 13:23:25 -06:00
Tim Byrne
4cb13d5d08
Remove unnecessary LEGACY_WARNING_ISSUED flag 2020-11-25 23:18:26 -06:00
Tim Byrne
13a3cdc8a8
Remove reporting of invalid alts 2020-11-25 23:18:25 -06:00
Tim Byrne
62a86ecd27
Support "make testhost version=local" 2020-11-25 23:18:25 -06:00
Tim Byrne
7997dc9a3d
Update upgrade
Upgrade will only move 2.0.0 paths to 3.0.0 standards
2020-11-25 23:18:25 -06:00
Tim Byrne
efe8355659
Update man page for new paths 2020-11-22 17:09:45 -06:00
Tim Byrne
62b109ad2d
Rename yadm_y -> yadm_cmd
-Y is no longer used when running commands
2020-11-22 17:09:44 -06:00
Tim Byrne
8efe2c8fad
Improve tests to use XDG* variables
Instead of overriding YADM_DIR via -Y, set the XDG* environment
variables.
2020-11-22 17:09:44 -06:00
Tim Byrne
fc66b6b71b
Support XDG_DATA_HOME (#208)
* Create a YADM_DATA base (that is the source for repo & archive)
* Add --yadm-data to override
* Default YADM_DATA will be determined by XDG_DATA_HOME
2020-11-22 17:09:44 -06:00
Tim Byrne
c79a67208c
Merge GitHub Actions updates 2020-11-22 17:04:31 -06:00
Tim Byrne
3ddea20853
Update badges/links for GitHub Actions 2020-11-22 16:39:37 -06:00
Tim Byrne
34940a6240
Migrate from Travis-CI to GitHub Actions 2020-11-22 15:36:57 -06:00
Erik Flodin
f22c4d04cc
Add support for the extension "condition"
This special condition doesn't affect the selection process and is only
supported to support syntax highlighting and language detection for alt files
as reported in #239.
2020-10-25 10:41:52 +01:00
Erik Flodin
4e1fb0166e
Reuse if pattern in template_default's condition pattern 2020-10-18 22:40:06 +02:00
Erik Flodin
3ce59314f5
Remove unused function alt_past_linking
Unused as of b19c78b8
2020-10-18 22:20:06 +02:00
Tim Byrne
b19c78b8e2
Remove support for YADM_COMPATIBILITY=1 (#242) 2020-10-17 17:41:09 -05:00
Tim Byrne
a66d3c148c
Remove tests for deprecated alternate processing 2020-10-17 17:39:24 -05:00
Tim Byrne
1e6f198552
Merge pull request #255 from erijo/template-awk-inc 2020-10-17 13:38:45 -05:00
Erik Flodin
9bcf070dfe
Add support for including files using the default template processor
The syntax is '{% include "file" %}' where file is either an absolute path or a
path relative to the current template file's directory.

Variables in the included file will be replaced as for the main template. But
the included file can't include files itself.
2020-10-12 16:13:50 +02:00
Tim Byrne
48d77c9f21
Use make variables instead of env variables 2020-10-10 18:12:51 -05:00
Tim Byrne
90901e588e
Merge pull request #254 from erijo/misc 2020-10-10 17:53:30 -05:00
Erik Flodin
b55ad5b525
Fix template conditional in man page
The default template processor doesn't support single quotes.
2020-10-10 18:25:18 +02:00
Erik Flodin
3741b92737
Fix setting the default value of version in Makefile
As each command in a make target is executed separately, a variable set in one
command isn't available in the following commands.
2020-10-10 18:25:01 +02:00
Erik Flodin
95c17d0bc5
Make shell redirections in Makefile work with dash
The default shell in Debian is dash and it doesn't support &>.
2020-10-10 18:24:50 +02:00
Tim Byrne
e0daf86334
Add encryption unit tests 2020-10-07 01:44:35 -05:00
Tim Byrne
2e035d9e05
Refactor encryption option generation 2020-10-07 01:21:55 -05:00
Tim Byrne
c2a4d9cb27
Use OPENSSL_OPTS for encryption too 2020-10-05 22:32:18 -05:00
Tim Byrne
78aa84eddb
Update man page for openssl options 2020-09-25 12:45:53 -05:00
Tim Byrne
d0556e5f5d
Add more info about transcrypt to man page 2020-09-25 12:21:10 -05:00
Tim Byrne
59c60a4675
Change default archive name to "archive" 2020-09-25 12:10:34 -05:00
Tim Byrne
05ae6f0257
Add config yadm.openssl-old
The newer versions (OpenSSL 1.1.1 or LibreSSL 2.9.1) support the pbkdf2
key derivation function, while older versions do not. In addition the
new versions have changed the default digest to SHA256 instead of MD5.

Files encrypted with older versions would throw warnings about
deprecated key derivation used files encrypted with newer versions +
pbkdf2 would not be decryptable using older versions These problems
matter, when many users maintain their dotfiles across different systems
with different levels of OpenSSL support.

A new boolean config option has been added, yadm.openssl-old

* If false, use options -pbkdf2 -iter 100000 -md sha512
* If true, use options -md md5 (and if decrypting with newer versions
  warnings will be printed)
2020-09-25 10:04:18 -05:00
Tim Byrne
47d4ea5f7e
Merge branch 'feature/alt-cyphers-138' into develop 2020-09-21 21:02:07 -05:00
Tim Byrne
0d94dfd8d7
Truncate using parameter expansion
I'm not completely sure truncation is actually needed, but regardless
this removes the dependency on `cut`.
2020-08-20 13:08:19 -05:00
Tim Byrne
b45aba385e
Merge pull request #246 from vendion/develop 2020-08-20 13:05:41 -05:00
Adam Jimerson
a13311feac
Adjust file mode check for BSD based systems
Adjusts the file mode check for BSD based systems as default BSD stat
uses "-f '%p'" to report the file mode. Also since `stat -p '%p'
"$filename"` reports more information than just read, write, execute
perms, pipe the output through `cut` to grab only the last three digits.

Signed-off-by: Adam Jimerson <vendion@gmail.com>
2020-08-19 09:36:14 -04:00
Tim Byrne
7628a1b61d
Release 2.5.0
Update version number and update documentation

* Support for transcrypt (#197)
* Support ESH templates (#220)
* Preserve file mode of template (#193)
* Fish shell completions (#224)
* Fix alt processing when worktree is `/` (#198)
* Assert config directory if missing (#226, #227)
* Documentation improvements (#229)
2020-08-09 15:54:31 -05:00
Tim Byrne
4ff12c7125
Sort contributors by lines changed
Previously number of commits were used
2020-08-09 15:54:21 -05:00
Chad Wade Day, Jr
d7361cdc31
Simplify zsh completion install 2020-07-26 10:37:20 -07:00
Tim Byrne
6098f76616
Set default cipher in only one place 2020-07-17 14:43:29 -05:00
Tim Byrne
d9adc80209
Adjust indent 2020-07-17 14:42:58 -05:00
Tim Byrne
4ae504c533
Merge alternative cyphers changes into develop 2020-07-17 14:07:10 -05:00
Tim Byrne
24e3dab328
Fix alternate file processing when worktree is / (#198) 2020-07-17 11:17:58 -05:00
Tim Byrne
102ba5d558
Preserve file mode of template (#193)
Any processed templates will inherit the file mode of the source
template.
2020-07-11 21:52:28 -05:00
Tim Byrne
6654e29c62
Merge pull request #220 2020-07-08 16:17:24 -05:00