1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-05 21:23:02 +00:00
Commit Graph

955 Commits

Author SHA1 Message Date
deadc0de
5e0b8e8a00 Merge pull request #229 from Asteb612/Features/silence
silent action #228
2020-05-08 18:54:27 +02:00
Arthur Grosso
43e286a638 silent action #228 2020-05-08 17:07:25 +02:00
deadc0de
fb9410eda6 Merge pull request #227 from deadc0de6/templatenotfound
Templatenotfound
2020-05-03 19:18:13 +02:00
deadc0de6
7f1cac74a3 add test for bug #226 2020-05-03 18:47:32 +02:00
deadc0de6
aab4492556 fix bug for #225 2020-05-03 17:58:29 +02:00
deadc0de6
ef4c48cadd add dependency checks for #225 2020-05-03 15:06:59 +02:00
deadc0de6
9f27c6bc48 fix templatenotfound for #226 2020-05-03 14:40:37 +02:00
deadc0de6
6ade21d7b6 bump aur packages 2020-05-02 11:02:54 +02:00
deadc0de6
7b0575e679 bump version v1.0.0 2020-05-02 10:49:14 +02:00
deadc0de
df83efe8bc Merge pull request #222 from deadc0de6/import-as
Import as
2020-04-16 18:23:20 +02:00
deadc0de6
8179e0e7e2 fix import as tild issue #220 2020-04-14 20:50:08 +02:00
deadc0de6
902a4036cb fix empty profile or empty profile dotfiles for #221 2020-04-14 17:57:22 +02:00
deadc0de6
40e970465b implement import --as for #220 2020-04-11 14:46:10 +02:00
deadc0de6
054ba21019 reorg usage 2020-04-10 14:07:05 +02:00
deadc0de6
1e5eeaca9b refactoring 2020-04-10 14:02:16 +02:00
deadc0de6
79431e0976 refactoring 2020-04-10 13:48:04 +02:00
deadc0de6
141caef07f fix zsh completion for aur packages 2020-03-24 19:17:27 +01:00
deadc0de
a9742305e3 Merge pull request #215 from davla/master
Fixing banner issues in diff-cmd test
2020-03-22 16:05:13 +01:00
Davide Laezza
0342f8bcd1 Fixing banner issues in diff-cmd test 2020-03-22 15:01:36 +01:00
deadc0de
622d50ade2 Merge pull request #214 from davla/master
Removing redundant path existence checks in _load_yaml and _import_sub
2020-03-22 13:17:02 +01:00
Davide Laezza
f26cd16dfe Removing redundant path existence checks in _load_yaml and _import_sub 2020-03-22 12:50:02 +01:00
deadc0de6
e53a7d5229 refactor for #212 2020-03-22 07:46:59 +01:00
deadc0de
28378b3d64 Merge pull request #212 from davla/master
Fix `:optional` in import paths for globs
2020-03-22 07:31:34 +01:00
Davide Laezza
566d2baac4 Using rpartition to split attributes in import paths 2020-03-21 17:49:11 +01:00
Davide Laezza
17cc6bd33a Fixing :optional import attribute for globbed paths 2020-03-21 14:52:41 +01:00
deadc0de6
736941a147 bump aur packages 2020-03-12 08:21:22 +01:00
deadc0de6
68022a5fc6 bump version v0.32.0 2020-03-12 08:10:11 +01:00
deadc0de
c026edaf32 Merge pull request #211 from davla/master
Fixing custom filters and functions paths
2020-02-22 19:30:59 +01:00
Davide Laezza
eeccd78ade Fixing custom filters and functions paths 2020-02-22 17:08:09 +01:00
deadc0de6
fb071321e9 add func_file and filter_file for the config (for #210) 2020-02-15 13:05:17 +01:00
deadc0de
b56e8ea00b Merge pull request #208 from brokenpip3/master
re-add bash and zsh completion to aur packages
2020-02-08 17:09:58 +01:00
brokenpip3
bec45a2fbd re-add bash and zsh completion to aur packages 2020-02-08 12:56:41 +01:00
deadc0de6
d860c07f64 add test for included profile 2020-01-29 16:32:08 +01:00
deadc0de6
a2b3ee2c41 fix tests 2020-01-29 14:56:13 +01:00
deadc0de6
7498be51b6 allow empty src/dst for dotfiles 2020-01-29 14:51:48 +01:00
deadc0de6
873a22bab6 ensure profile dotfiles is not None 2020-01-29 14:09:50 +01:00
deadc0de6
adc4581533 fix diff tests 2020-01-27 08:10:25 +01:00
deadc0de6
d54f0eb465 fix diff default 2020-01-27 08:02:28 +01:00
deadc0de6
bb20f1f6bf bump aur package 2020-01-26 20:18:33 +01:00
deadc0de6
7bf9672758 bump version v0.31.0 2020-01-26 19:58:53 +01:00
deadc0de6
0e421c7908 default to unified diff 2020-01-26 19:54:25 +01:00
deadc0de6
8a663e7267 fix completion files 2020-01-26 19:45:53 +01:00
deadc0de
e8fe9b931f Merge pull request #206 from deadc0de6/diff_command
Diff command
2020-01-26 19:43:54 +01:00
deadc0de
2809afb6dd Merge pull request #205 from Sighery/diff_command
Use alternative list-based diff_cmd escaping
2020-01-26 19:41:17 +01:00
deadc0de6
99150cec88 remove "import shlex" to pass tests 2020-01-26 19:37:52 +01:00
Sighery
704f8deab6 Use alternative list-based diff_cmd escaping
The previous escaping method of wrapping the arguments with double
quotes would eventually fail in some cases, since Linux allows pretty
much any character for a filename.

Using a different quoting character, like the single quote would have
brought you back to the exact same issue. As soon as any part of the
path contained your escape quote character, the code would break.

The code would use `shlex`, a parser for Linux shells. However, this
wasn't working since even that wouldn't know where your argument began
and ended, since it wasn't escaped properly. Meaning, a string like:

`diff -r /home/test/.config/Code - OSS/t"t't.test mytestfile.test`

Would then break any of the quoting solutions. And shlex, since it
wouldn't know where arguments start and end, it would think an
argument ends at `home/test/.config/Code`, since the spaces haven't
been escaped. But escaping the spaces with quote characters is not a
good idea since any parts of the path with those quote arguments would
then again break shlex and it wouldn't be able to tell when your
argument starts and ends.

The solution for that is to, before we replace our diff template
string with the given files arguments, we can just split it by
whitespace, and manually replace the `{0}` and `{1}` placeholders.
This allows us to keep the separation with a Python list. What does
this mean? That when you then call `subprocess.Popen` with this list,
`subprocess` knows where all your arguments start and end, even if
they themselves are not properly escaped. But since it's all split in
a list, `subprocess` has a concept of what is a single argument and
would apply the needed escaping to each individual argument.
2020-01-26 12:28:28 +01:00
deadc0de6
40a9872f56 quote diff command arguments (#203) 2020-01-26 11:21:14 +01:00
deadc0de6
98911550df fix quotes in arguments for #203 2020-01-23 08:27:44 +01:00
deadc0de6
d4375c5d04 adding ability to provide diff command for #203 2020-01-22 17:41:48 +01:00
deadc0de
0da393cef2 Merge pull request #202 from Sighery/master
Fix diff order
2020-01-22 10:24:55 +01:00