Commit Graph

1400 Commits

Author SHA1 Message Date
Dan Davison
a15b1221ba
Make navigate work when files are represented in the hunk header (#575) 2021-04-24 16:42:26 -04:00
Dan Davison
ab77bff0fc
Run test of less on MacOS with output redirected to /dev/null (#574)
This change makes git and delta believe that they are writing to a tty
so that they invoke their child pager processes, as is required for
the test. However, output is actually redirected to /dev/null.

TODO: implement for the Linux version of script also.

https://stackoverflow.com/a/1402389/583763
2021-04-24 13:37:50 -04:00
Dan Davison
eef33b6b33
Merge pull request #573 from dandavison/support-new-style-git-config-parameters
Support new GIT_CONFIG_PARAMETERS format
2021-04-24 11:26:49 -04:00
Dan Davison
567bdf6775 Support new GIT_CONFIG_PARAMETERS env var format
311531c9de/Documentation/RelNotes/2.31.0.txt (L127-L130)
2021-04-24 10:13:44 -04:00
Dan Davison
86a7a6a713 Add failing test: support new GIT_CONFIG_PARAMETERS format 2021-04-24 09:59:25 -04:00
Dan Davison
adb61d15cb Use verbose regex style 2021-04-24 09:59:25 -04:00
Dan Davison
43ae361226 Refactor test to allow multiple env var formats to be tested 2021-04-24 09:59:25 -04:00
Dan Davison
9f2f44d877
Merge pull request #572 from dandavison/fix-github-url-parsing
Fix GitHub url parsing
2021-04-24 09:59:11 -04:00
Dan Davison
b1234ba4e8 Implement tested feature: support HTTPs and SSH URLs 2021-04-24 08:01:27 -04:00
Dan Davison
9b13f7bd77 Test HTTPS and SSH Github URLs 2021-04-24 07:55:02 -04:00
Dan Davison
9a218b27c7 Fix Github repo URL regex
Ref #563
2021-04-24 07:38:46 -04:00
Dan Davison
62741cc682 Add failing tests for remote repo string parsing 2021-04-24 07:04:53 -04:00
Andy Freeland
86479d420f
Support matching GitHub remotes that don't end in .git (#563)
`.git` is optional in clones from GitHub.com.
2021-04-23 14:38:51 -04:00
Dan Davison
598c2e3f14
Deprecate --24-bit-color, replacing with --true-color (#571)
Fixes #567
2021-04-23 13:20:16 -04:00
Thomas Otto
535ba79da0
Fix --show-syntax-themes exhausting stdin (#569)
If a diff is provided via stdin then the first `_show_syntax_themes`
call reads from it directly and uses that, but the second one finds
nothing is left to read and falls back to the default. Fixed by
reading from stdin earlier.
2021-04-23 09:57:57 -04:00
dependabot-preview[bot]
ce5dd0c47a
Bump regex from 1.4.5 to 1.4.6 (#570)
Bumps [regex](https://github.com/rust-lang/regex) from 1.4.5 to 1.4.6.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.4.5...1.4.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-04-23 09:57:38 -04:00
Dan Davison
d4df124dce Fix Makefile escaping 2021-04-20 21:44:28 -04:00
dependabot-preview[bot]
7d91d1d2f6
Bump git2 from 0.13.17 to 0.13.18 (#564)
Bumps [git2](https://github.com/rust-lang/git2-rs) from 0.13.17 to 0.13.18.
- [Release notes](https://github.com/rust-lang/git2-rs/releases)
- [Commits](https://github.com/rust-lang/git2-rs/compare/0.13.17...0.13.18)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-04-20 08:05:39 -04:00
Marco Ieni
feb8b12ea1
CI: check docs (#559)
* CI: check docs

* Don't use triple-slash doc comments

A full pass would need to be done to make the comments suitable for
generating documentation.

Co-authored-by: Dan Davison <dandavison7@gmail.com>
2021-04-15 18:18:16 -04:00
Max
e7d1e281ea
Remove unnecessary trailing semicolon after enum (#555) 2021-03-30 08:27:50 -04:00
Dan Davison
762ef0ccfe Add navigate to example config in README 2021-03-29 19:03:58 -04:00
Dan Davison
e1ef7f54ce Bump version in private Homebrew formula 2021-03-29 19:01:51 -04:00
Dan Davison
e4653cb090 Update README 2021-03-29 19:00:31 -04:00
Dan Davison
54393d197e Bump version 2021-03-29 18:48:45 -04:00
Dan Davison
f973db666d Bump version 0.6.0 -> 0.7.0 2021-03-29 18:32:03 -04:00
Dan Davison
5a89a9d905 Fix typo in Makefile preventing a test from running locally 2021-03-29 18:31:41 -04:00
Dan Davison
6e6bc163f2
Clippy (#554)
* Clippy
2021-03-29 11:20:15 -05:00
Dan Davison
04b4af073e Edit theme instructions 2021-03-29 08:38:28 -05:00
Dan Davison
38a18b4499 Add hoopoe theme 2021-03-29 08:38:28 -05:00
Dan Davison
f57df9095f Sort theme keys 2021-03-29 07:46:18 -04:00
Dan Davison
a95ca0acae Sort themes 2021-03-29 07:41:37 -04:00
Dan Davison
48fe43fff3
Merge pull request #550 from clnoll/show-delta-themes 2021-03-29 06:34:25 -05:00
Dan Davison
926e3c5e34 Add link to README themes documentation in --help text 2021-03-29 07:29:49 -04:00
Catherine Noll
4b955f3f91 Update default diff used by --show-themes (to 7ec4627902) 2021-03-28 21:42:01 -04:00
Catherine Noll
8353527d5b Display themes alphabetically when using --show-themes 2021-03-28 21:42:01 -04:00
Dan Davison
1f4691f208
Merge pull request #551 from clnoll/theme-coracias-cordatus
Add "coracias-cordatus" theme
2021-03-28 11:53:46 -05:00
Dan Davison
6da73bbc0d Move dividing line above the commit hash line 2021-03-28 12:51:09 -04:00
Catherine Noll
98667d023a Add "coracias-cordatus" theme 2021-03-28 10:34:43 -04:00
Dan Davison
fb77406bf0 Edit instructions in themes.gitconfig 2021-03-28 10:04:14 -04:00
Dan Davison
cef38eef5a Edit --help text 2021-03-28 09:49:11 -04:00
Catherine Noll
ebb05c7e67 Use string literal instead of escaping double quotes 2021-03-28 00:22:11 -04:00
Catherine Noll
6dd4209e75 Remove unnecessary check in get_themes and clean up --show-themes cli docstring 2021-03-27 22:27:51 -04:00
Catherine Noll
2e02bbec38 Fix typo in docstring 2021-03-27 22:20:24 -04:00
Catherine Noll
4aaa5f2848 Update behavior of --show-themes to rely on the computed is_light_mode
value to determine whether to show light or dark themes by default
2021-03-27 22:20:24 -04:00
Catherine Noll
d83c438597 Define theme by presence of "dark" or "light" entries in git config,
and give the ability to filter themes shown with --show-themes by
dark or light, using the --dark and --light flags
2021-03-27 22:20:24 -04:00
Catherine Noll
a1e42432f4 Reorganize and add test for get_themes 2021-03-27 19:46:08 -04:00
Catherine Noll
cbbc1aab01 Get themes from gitconfig instead of hardcoding 2021-03-27 18:55:29 -04:00
Dan Davison
6b0848daca Add README note warning of problems on Debian/Ubuntu systems
Ref #504
2021-03-23 20:57:43 -04:00
Dan Davison
e7d3870529 Make target: run rustfmt on all rust code 2021-03-22 09:23:30 -04:00
Catherine Noll
85f591b752 Send navigation command to less on --show-themes 2021-03-21 12:50:45 -05:00