Commit Graph

274 Commits (216aed2f87555453db815033e840835f9c7cc859)

Author SHA1 Message Date
Tim Byrne 84a173551e
Only assert private dirs, when worktree = $HOME (#171)
5 years ago
Tim Byrne cc1993dc14
Move logic around assert_private_dirs to be more efficient
5 years ago
Tim Byrne 46105aae47
Set YADM_WORK within configure_paths
5 years ago
Tim Byrne 18e5fcfacc
Only assert private dirs, when worktree = $HOME
5 years ago
Tim Byrne e7d2406af3
Export GIT_WORK_TREE during `yadm enter` (#160)
5 years ago
Tim Byrne 32baf81b56
Support specifying a command after `yadm enter`
5 years ago
Ross Smith II 43ac19398a
Remove quotes from distro name
5 years ago
Tim Byrne 96bce8dbac
Release 2.2.0
5 years ago
Tim Byrne 4d23bbcf11
Standardize on &> when not appending output
5 years ago
Tim Byrne 758a2e0c26
Automatically prefer `gawk` over `awk`
5 years ago
Tim Byrne c0310a43a2
Merge pull request #180 from rasa/rasa/use-gawk-on-openwrt
5 years ago
Tim Byrne 3d10309665
Issue warning for any invalid alternates found (#183)
5 years ago
Tim Byrne 6bf0852609
Use /etc/os-release if lsb_release is missing (#175)
5 years ago
Tim Byrne 96839a5743
Remove dependency on `hostname` (#182)
5 years ago
Tim Byrne 75c19c9cc0
Release 2.1.0
5 years ago
Tim Byrne 510169eb7f
Support double-star globs in encrypt (#109)
5 years ago
Tim Byrne 5634c09a8a
Refactor symlink code
5 years ago
Tim Byrne 61576a6ae1
Use relative symlinks for alt (#100)
5 years ago
Tim Byrne 98392b9a9c
Add function relative_path
5 years ago
Ross Smith II 2bf98a5ade
Use gawk on OpenWrt, as awk is BusyBox version
5 years ago
Tim Byrne 98915151a3
Revert version change
5 years ago
Ross Smith II 539ffd3ffc
Make symlinks relative
5 years ago
Tim Byrne 5aa1a7be75
Release 2.0.1
5 years ago
Ross Smith II 8633083716
Don't glob into parent dirs
5 years ago
Tim Byrne de73c9f4b4
Release 2.0.0
5 years ago
Tim Byrne f2b2d505a2
Reinitialize submodules during upgrade
5 years ago
Tim Byrne a217537b26
Fix URL for upgrade help
5 years ago
Tim Byrne 5a802c8afd
Allow `-l` to pass thru to the `yadm config` command
5 years ago
Tim Byrne f5287f1588
Properly format supported configs
5 years ago
Tim Byrne fc53cfd1f8
Remove `--local`
5 years ago
Tim Byrne 616baaeac6
Rename default template processor
5 years ago
Tim Byrne b62a4c77a6
Create an upgrade command
5 years ago
Tim Byrne 0c9468c9b5
Ignore encrypted files (#69)
5 years ago
Tim Byrne f3249e00b5
Ensure base directories for alternates before creation
5 years ago
Tim Byrne 6d5467951a
Properly handle missing "." in alternate conditions
5 years ago
Tim Byrne 4ea3ed9e2a
Allow storing alternates elsewhere (#90)
5 years ago
Tim Byrne aeb6a54ad7
Add `source` to templates (#163)
5 years ago
Tim Byrne 3a192db420
Remove symlinks before processing a template
5 years ago
Tim Byrne 574945f010
Change yadm.cygwin-copy to yadm.alt-copy
5 years ago
Tim Byrne b2ef6d2e09
Merge pull request #102 from rasa/rasa-add-mingw-msys-support
5 years ago
Tim Byrne f3bde37f78
Support `-b <branch>` when cloning (#133)
5 years ago
Tim Byrne 6a3199ceea
Support DISTRO in alternates (#72)
5 years ago
Tim Byrne 444622a658
Support `else` statements in builtin templates
5 years ago
Tim Byrne e999929818
Change builtin templates to resemble jinja
5 years ago
Tim Byrne b411f9d74f
Split out processing of stale links
5 years ago
Tim Byrne 0438e383e5
Unify the way alternate file strings are matched
5 years ago
Tim Byrne 3ba17f41fd
Fix a known bug with hidden private files
5 years ago
Tim Byrne cfda485b34
Implement future alternate processing
5 years ago
Tim Byrne f3ae31f1c2
Separate alternate linking code from other operations
5 years ago
Tim Byrne e4e956fe21
Split discovery of alternates test data into a testable function
5 years ago
Tim Byrne c29292d02b
Split out processing of alt (past/future)
5 years ago
Tim Byrne 289b8e0c6c
Remove unnecessary continuation backslashes
5 years ago
Tim Byrne cec8778578
Align continuation backslashes
5 years ago
Tim Byrne 48fc6b0db7
Support XDG base directory specification
5 years ago
Tim Byrne f0ad40376d
Create YADM_HOOKS variable for hooks dir
5 years ago
Tim Byrne a399c35e4e
Add quoting
5 years ago
Daniel Wagenknecht b404a87a89
Replace direkt calls to git with $GIT_PROGRAM
5 years ago
Tim Byrne 4613c1d0c4
Merge pull request #114 from bb010g/patch-1
5 years ago
Tim Byrne d245f633bf
Remove invalid linked alternates (#65)
5 years ago
Tim Byrne a2cc970dd6
Remove unnecessary Git invocations
5 years ago
Tim Byrne 2375a0955b
Standardize sort order
5 years ago
Tim Byrne 0c6be5e398
Fix bug with alternate linked directories
5 years ago
Tim Byrne 2aa1710214
Remove superfluous `;` in comments
5 years ago
Tim Byrne 58edf313aa
Process .yadm/encrypt in sorted order
5 years ago
addshore ec65801d9b
Run hooks on MINGW* systems
5 years ago
Tim Byrne 402b57880d
Update GPLv3 LICENSE information
5 years ago
Stig Palmquist d075438308
support multiple keys in `yadm.gpg-recipient`
5 years ago
Brayden Banks 0b9f537909
Allow for more complex Jinja templates
6 years ago
Ross Smith II 54f7cbcebe Fix OS name match for Cygwin/Msys
6 years ago
Ross Smith II 315ad0873e Fix OS check to match (Cygwin|Msys)*
6 years ago
Ross Smith II adfedf4b64 Add Mingw/Msys support
6 years ago
Tim Byrne 09a018ea5a
Release 1.12.0
7 years ago
Thomas Luzat ac2aed9ab4
Indentation: Convert tab to space
7 years ago
Tim Byrne d411db9f6f
Consolidate cd to YADM_WORK
7 years ago
Tim Byrne c24906ec10
Handle exclusions in `.yadm/encrypt` (#86)
7 years ago
Tim Byrne f23bdb8147
Remove last use of LS_PROGRAM
7 years ago
Tim Byrne b78bb1eef4
Eliminate the use of `eval`
7 years ago
Tim Byrne 57866714c4
Replace `echo` with `printf` (#87)
7 years ago
Tim Byrne abf6cd1c4c
Merge pull request #81 from japm48/patch-1
7 years ago
Tim Byrne 5d4f3aac5b
Release 1.11.1
7 years ago
Tim Byrne ebc90bfc98
Create secured private dirs (#74)
7 years ago
japm48 8e3a5dbf47 Fix for issue #81
7 years ago
Tim Byrne 4b5b6c44d3
Release 1.11.0
7 years ago
Tim Byrne 0168bcfb5e
Query worktree directly from repo
7 years ago
Tim Byrne 61270c8277
Prevent command from running if "pre" hook fails
7 years ago
Tim Byrne f73c873681
Expose some internal data to all hooks
7 years ago
Tim Byrne 35743e3711
Tie "post" hooks to yadm exits
7 years ago
Tim Byrne 880964e2b2
Some initial tweaks to hooks
7 years ago
Tim Byrne df21cd2cb8
Merge pull request #70 from cweagans/hooks
7 years ago
Tim Byrne 5293db986a
Support `YADM_DISTRO` in Jinja templates (#68)
7 years ago
Cameron Eagans 41409631a1 Add script hooks
7 years ago
Tim Byrne 7538851fe3
Gracefully handle changes in yadm.cygwin-copy
7 years ago
Tim Byrne f8e0bd593d
Support `yadm.cygwin-copy` configuration (#62)
7 years ago
Tim Byrne 68937f3cad
Release 1.10.0
7 years ago
Tim Byrne 246eab8b52
Release 1.09
7 years ago
Tim Byrne 356c47a19f
Add Bash completion script (#60)
7 years ago
Tim Byrne eabf9091fb
Support WSL detection (#61)
7 years ago
Tim Byrne df4652d6de
Release 1.08
7 years ago
Tim Byrne 9824de5410
Change template indicator to `##yadm.j2`
7 years ago
Tim Byrne 588bc6eafe
Support local.hostname properly (#59)
7 years ago
Tim Byrne 00133032ef
Add minor improvements to template processing
7 years ago
Tim Byrne aaa4152fac
Remove trailing whitespace
7 years ago
Tim Byrne fd6fa8c923
Merge pull request #58 from janschulz/jinja_processing
7 years ago
Tim Byrne 4e05be7020
Set prompt for sub-shells
7 years ago
Tim Byrne 1c34bc8e7f
Merge pull request #57 from renard/enter-function
7 years ago
Jan Schulz a479b70d8a Add jinja processing to alt command
7 years ago
Tim Byrne 5678e383d8
Give priority to CLASS by processing those patterns separately (#51)
7 years ago
Tim Byrne 5141433776
Support encrypt globs and paths with space (#53, #54)
7 years ago
Sébastien Gross 831461e91e Add `enter` function for easier interaction with git repo.
7 years ago
Tim Byrne def7e732db
Release 1.07
7 years ago
Tim Byrne f2b2b64750
Bring man page up-to-date with new features
7 years ago
Tim Byrne 2a7203a67b
Unset `GIT_DIR` prior to executing bootstrap
7 years ago
Tim Byrne a612a98136
Explicitly read answers from `/dev/tty`
7 years ago
Tim Byrne 7f6fe24280
Indicate `stash` should be run from within `$HOME`
7 years ago
Tim Byrne d28df86494
Store class/os/host/user overrides in the local repo config
7 years ago
Tim Byrne 76d90db627
Replace "TODO text" for `yadm config` (#46)
7 years ago
Tim Byrne 08e6cd40cb
Offer bootstrap after clone (#45)
7 years ago
Tim Byrne e82c4dac4c
Add bootstrap command (#42)
7 years ago
Tim Byrne 7d3c9e1cb5
Run auto-alt after `yadm config`
7 years ago
Tim Byrne e2d8742a40
Support stashing of conflicting data during clone (#44)
7 years ago
Tim Byrne ce4ed41f10
Support custom classes for alt-links (#21)
7 years ago
Tim Byrne 3b4c405d7f
Allow override of OS/Host/User (#21)
7 years ago
Tim Byrne eaa252f721
Implement alt-link wildcards (#43)
7 years ago
Tim Byrne 02bf83c5ef
Restrict alt-link delimiter to a period (#49)
7 years ago
Tim Byrne 672c985e88
Release 1.06
7 years ago
Tim Byrne fe0ddd4c1a
Merge pull request #26 from cnaj/master
7 years ago
Tim Byrne eba6557ae8
Ignore empty lines/whitespace lines in .yadm/encrypt (#40)
7 years ago
Tim Byrne 2a956d15ad
Allow Git program to be configured via yadm.git-program (#30)
7 years ago
Tim Byrne 044c6e4d62
Support alt-links for encrypted files (#34)
7 years ago
Tim Byrne 635468b707
Check exit code directly (SC2181)
7 years ago
Tim Byrne 2033e5673e
Merge pull request #35 from shkitch/master
7 years ago
Tim Byrne 39e5548347
Merge pull request #36 from roothybrid7/feature/alt-with-spaces
7 years ago
Tim Byrne fd77d024dd
Improve portability of `hostname` (#23)
8 years ago
Satoshi Ohki 2140970157 Fixed yadm-alt to work even if whitespaces exist in filepath
8 years ago
Uroš Golja 763146043e Make yadm exit with the return value of git.
8 years ago
Tomas Cernaj 35da3eeb6e Make yadm work with Git for Windows under Cygwin
8 years ago
Tim Byrne 05ed83ea34
Release 1.05
8 years ago
Tim Byrne 60eb4c415f
Fallback to using `ls` if `/bin/ls` does not exist (#22)
8 years ago
Tim Byrne ce0acf1505
Support alternate gpg program (#19)
8 years ago
Tim Byrne d500ccfbd9
Use `-f -` with tar `-x`, `-c`, and `-t` operations (#18)
8 years ago
Tim Byrne fa286f0c9d
Support for symlinked directories (#17)
8 years ago
Tim Byrne fea665eb34
Use `#!/bin/sh` for portability (#14)
8 years ago
Tim Byrne d55725eafa
Improve portability of shebang line (#14)
8 years ago
Tim Byrne f0a0015209
Release 1.04
8 years ago
Tim Byrne aeb2e5d6c7 Prevent the mixing of output and gpg prompts
8 years ago
Tim Byrne ea3b2ecfa8 Support `yadm.gpg-recipient = ASK`
8 years ago
Tim Byrne 5ad5b2df7e Double quote array expansion
8 years ago
Tim Byrne fbaf5b6cf4 Merge pull request #8 from esphen/master
8 years ago
Espen Henriksen 34ae748408
#7 Add support for asymmetric encryption
8 years ago
Tim Byrne ca63fddad0 Add support for path overrides
8 years ago