David Mandelberg
60e0fbbf42
Fix completion after a command-line flag.
...
Before:
yadm checkout -f <TAB> # Completes filenames.
yadm checkout --yadm-dir <TAB> # Completes filenames.
After:
yadm checkout -f <TAB> # Completes branch names.
yadm checkout --yadm-dir <TAB> # Completes filenames.
5 years ago
Tim Byrne
5634c09a8a
Refactor symlink code
...
Update variable names, favoring the terminology used by `ln`.
* source (original file containing data)
* target (the symlink file, pointing to source)
5 years ago
Tim Byrne
61576a6ae1
Use relative symlinks for alt ( #100 )
...
* Fix broken support for .config/yadm/alt
* Removes dependence on external basename / dirname
5 years ago
Tim Byrne
98392b9a9c
Add function relative_path
...
This function will create a path relative to another, without the use of
an external program like dirname.
5 years ago
Tim Byrne
f8d6d2b0e4
Change tests to expect relative links
5 years ago
Ross Smith II
2bf98a5ade
Use gawk on OpenWrt, as awk is BusyBox version
...
The BusyBox version of awk fails with this error:
awk: bad regex '[\\.^$(){}\[\]|*+?]': Repetition not preceded by valid expression
5 years ago
Tim Byrne
8d2373b5c5
Merge pull request #177 from rasa/rasa/make-symlinks-relative
5 years ago
Tim Byrne
98915151a3
Revert version change
5 years ago
Tim Byrne
abf21873f6
Adjust formatting
5 years ago
Sheng Yang
daa55b1af0
Update documentation about using yadm with magit
5 years ago
Tim Byrne
eed59388cb
Note exception for WSL ( #113 )
5 years ago
Ross Smith II
539ffd3ffc
Make symlinks relative
5 years ago
Tim Byrne
5aa1a7be75
Release 2.0.1
...
Update version number and update documentation
* Fix bug with worktree permissions (#174 )
5 years ago
Tim Byrne
c29834ed86
Add test for permission bug ( #174 )
5 years ago
Tim Byrne
c222644f8c
Merge pull request #174 from rasa/fix-parent-dir-globbing
5 years ago
Ross Smith II
8633083716
Don't glob into parent dirs
5 years ago
Tim Byrne
2eb8a9e362
Add make install
5 years ago
Tim Byrne
ab578c9502
Add OBS badge
5 years ago
Tim Byrne
de73c9f4b4
Release 2.0.0
...
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
5 years ago
Tim Byrne
5b105e0687
Add missing details to manpage
5 years ago
Tim Byrne
1fc52536ac
Fix contrib make target (dev has been changed to develop)
5 years ago
Tim Byrne
84ef8709e4
Fix typo
5 years ago
Tim Byrne
dc699e0b4e
Improve portability of hosted bootstrap curl-pipe
5 years ago
Tim Byrne
375a34b97a
Test conditional submodule upgrade processing
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
9362b93820
Update specfile for OBS
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`
...
`--local` isn't supported by versions of Git older than 1.8. But it
should be the default if the `--local` is omitted.
5 years ago
Tim Byrne
6442313abf
Improve manpage
5 years ago
Tim Byrne
616baaeac6
Rename default template processor
5 years ago
Tim Byrne
b62a4c77a6
Create an upgrade command
...
This command will assist users with migration from 1.x.x to 2.0.0.
5 years ago
Tim Byrne
0c9468c9b5
Ignore encrypted files ( #69 )
...
Append the contents of .config/yadm/encrypt to the repo's git ignore
list. This is to help prevent accidentally committing unencrypted
sensitive data.
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 )
...
This change allows alternates to be stored in "$YADM_DIR/alt". The
correct path within the work tree will be symlinked.
Storing alternates within the work tree is still allowed. Both locations
will be considered when choosing an appropriate alternate file.
5 years ago
Tim Byrne
aeb6a54ad7
Add `source` to templates ( #163 )
...
A new variable is exposed to templates, which holds the filename of the
template source. The primary use case is to be able to include a warning
message within the template. For example:
# Do not edit. This file auto-generated from {{ yadm.source }}.
5 years ago
Tim Byrne
0c7aec6dd7
Clarify xfails are for deprecated features
5 years ago
Tim Byrne
3a192db420
Remove symlinks before processing a template
5 years ago
Tim Byrne
117541fd21
Reorder descriptions of options
5 years ago
Tim Byrne
574945f010
Change yadm.cygwin-copy to yadm.alt-copy
...
This removes the constraint of only allowing the copy option on Cygwin
systems. Now any system can configure this option.
5 years ago
Tim Byrne
b2ef6d2e09
Merge pull request #102 from rasa/rasa-add-mingw-msys-support
5 years ago
Tim Byrne
e51166b7e8
Improve clone testing
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
4f6b0f09cd
Remove unnecessary formatting
5 years ago
Tim Byrne
444622a658
Support `else` statements in builtin templates
5 years ago
Tim Byrne
81134c8edb
Update documentation
...
* XDG Base Directory Specification
* New alternates processing
5 years ago
Tim Byrne
e999929818
Change builtin templates to resemble jinja
5 years ago