Commit Graph

339 Commits

Author SHA1 Message Date
Tim Byrne 3aefeeff0f
Create pinentry-mock
This is a program which adheres to the pinentry protocol. It always
provides the password located in /etc/mock-password.
2019-12-05 15:02:43 -06:00
Tim Byrne 4d23bbcf11
Standardize on &> when not appending output 2019-12-04 22:39:00 -06:00
Tim Byrne f7485915ed
Update tests for gawk support 2019-12-04 22:18:55 -06:00
Tim Byrne 758a2e0c26
Automatically prefer `gawk` over `awk` 2019-12-04 22:18:22 -06:00
Tim Byrne c0310a43a2
Merge pull request #180 from rasa/rasa/use-gawk-on-openwrt 2019-12-04 17:53:36 -06:00
Tim Byrne c1f779521c
Confirm LEGACY_WARNING_ISSUED is set appropriately 2019-12-04 17:36:43 -06:00
Tim Byrne 66a3969c8a
Add unit tests for reporting invalid alternates (#183) 2019-12-04 17:36:43 -06:00
Tim Byrne 59da359e63
Remove old-style alts from test data 2019-12-04 08:17:03 -06:00
Tim Byrne 3d10309665
Issue warning for any invalid alternates found (#183) 2019-12-03 08:38:11 -06:00
Tim Byrne 6bf0852609
Use /etc/os-release if lsb_release is missing (#175) 2019-11-30 18:31:27 -06:00
Tim Byrne 96839a5743
Remove dependency on `hostname` (#182) 2019-11-30 10:27:28 -06:00
Tim Byrne 75c19c9cc0
Release 2.1.0
Update version number and update documentation

* Use relative symlinks for alternates (#100, #177)
* Support double-star globs in .config/yadm/encrypt (#109)
* Improve bash completion (#136)
* Update docs about using magit (#123)
* Note exception for WSL (#113)
2019-11-27 07:21:44 -06:00
Tim Byrne ecbffdbb28
Update manpage for double-star support 2019-11-26 16:59:19 -06:00
Tim Byrne 510169eb7f
Support double-star globs in encrypt (#109)
This will only work for Bash >=4, there the shell option "globstar" is
supported.
2019-11-26 16:24:51 -06:00
Tim Byrne 24e6e81713
Test support for double-star globs 2019-11-26 16:24:36 -06:00
Tim Byrne 5986cd7943
Merge pull request #136 from dseomn/bash-completion 2019-11-25 16:55:43 -06:00
David Mandelberg bcf6531da6
Only add yadm commands to the completion list when applicable.
Before:
  yadm <TAB>  # Completes git and yadm commands.
  yadm -Y . <TAB>  # Completes yadm commands.
  yadm p<TAB> -u origin foo  # Completes yadm+git commands like p*.
  yadm push -u origin <TAB>  # Completes branch names and yadm commands.

After:
  yadm <TAB>  # Completes git and yadm commands.
  yadm -Y . <TAB>  # Completes yadm commands.
  yadm p<TAB> -u origin foo  # Completes yadm+git commands like p*.
  yadm push -u origin <TAB>  # Completes branch names.
2019-11-25 16:55:08 -06:00
David Mandelberg 5d9e0a7133
Mark GIT_DIR for export.
Before:
  yadm push <TAB>  # Completes filenames.

After:
  yadm push <TAB>  # Completes names of git remotes.
2019-11-25 16:55:07 -06:00
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.
2019-11-25 16:55:06 -06:00
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)
2019-11-25 08:24:46 -06:00
Tim Byrne 61576a6ae1
Use relative symlinks for alt (#100)
* Fix broken support for .config/yadm/alt
* Removes dependence on external basename / dirname
2019-11-25 07:27:54 -06:00
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.
2019-11-24 13:15:42 -06:00
Tim Byrne f8d6d2b0e4
Change tests to expect relative links 2019-11-24 13:15:42 -06:00
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
2019-11-23 19:39:57 -08:00
Tim Byrne 8d2373b5c5
Merge pull request #177 from rasa/rasa/make-symlinks-relative 2019-11-17 12:39:52 -06:00
Tim Byrne 98915151a3
Revert version change 2019-11-17 12:39:05 -06:00
Tim Byrne abf21873f6
Adjust formatting 2019-11-16 15:26:50 -06:00
Sheng Yang daa55b1af0
Update documentation about using yadm with magit 2019-11-16 08:37:32 -06:00
Tim Byrne eed59388cb
Note exception for WSL (#113) 2019-11-14 08:23:41 -06:00
Ross Smith II 539ffd3ffc
Make symlinks relative 2019-11-13 08:17:06 -08:00
Tim Byrne 5aa1a7be75
Release 2.0.1
Update version number and update documentation

* Fix bug with worktree permissions (#174)
2019-11-12 07:49:26 -06:00
Tim Byrne c29834ed86
Add test for permission bug (#174) 2019-11-12 06:52:49 -06:00
Tim Byrne c222644f8c
Merge pull request #174 from rasa/fix-parent-dir-globbing 2019-11-12 06:52:30 -06:00
Ross Smith II 8633083716
Don't glob into parent dirs 2019-11-12 06:50:54 -06:00
Tim Byrne 2eb8a9e362
Add make install 2019-11-09 16:01:54 -06:00
Tim Byrne ab578c9502
Add OBS badge 2019-11-08 09:44:30 -06:00
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
2019-11-07 21:38:53 -06:00
Tim Byrne 5b105e0687
Add missing details to manpage 2019-11-07 21:36:53 -06:00
Tim Byrne 1fc52536ac
Fix contrib make target (dev has been changed to develop) 2019-11-07 21:23:49 -06:00
Tim Byrne 84ef8709e4
Fix typo 2019-11-07 21:09:37 -06:00
Tim Byrne dc699e0b4e
Improve portability of hosted bootstrap curl-pipe 2019-11-07 20:37:38 -06:00
Tim Byrne 375a34b97a
Test conditional submodule upgrade processing 2019-11-07 07:48:42 -06:00
Tim Byrne f2b2d505a2
Reinitialize submodules during upgrade 2019-11-05 16:36:05 -06:00
Tim Byrne a217537b26
Fix URL for upgrade help 2019-11-04 17:31:55 -06:00
Tim Byrne 9362b93820
Update specfile for OBS 2019-11-03 22:33:34 -06:00
Tim Byrne 5a802c8afd
Allow `-l` to pass thru to the `yadm config` command 2019-11-03 14:21:59 -06:00
Tim Byrne f5287f1588
Properly format supported configs 2019-11-03 14:17:10 -06:00
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.
2019-11-03 13:35:44 -06:00
Tim Byrne 6442313abf
Improve manpage 2019-10-30 17:34:34 -05:00
Tim Byrne 616baaeac6
Rename default template processor 2019-10-30 17:29:17 -05:00