Commit Graph

1579 Commits

Author SHA1 Message Date
Dan Davison
50e227036c Bump dev version 2021-05-28 15:06:06 -04:00
Dan Davison
3beed3615a Update --help text in README 2021-05-28 15:04:26 -04:00
Dan Davison
9294857632 Update homebrew formula 2021-05-28 15:02:29 -04:00
Dan Davison
1780bf24fd Bump version in links to executables 2021-05-28 14:59:20 -04:00
Dan Davison
d205aa8fa3 Bump version 2021-05-28 14:29:46 -04:00
Dan Davison
233719c09a
Infer that a theme is light if its name contains "light" (#617) 2021-05-27 11:52:09 -04:00
Dan Davison
9de714a8a9
Improve documentation of hyperlinks (#616) 2021-05-26 12:32:34 -04:00
Dan Davison
974204f897
Recommend setting delta as the pager for specific git commands (#610) 2021-05-26 09:30:22 -04:00
Dan Davison
ebe08f9a6d
Add hyperlinks-commit-link-format option (#614)
* Refactor: hyperlinks utility

* Add hyperlinks-commit-link-format option

Fixes #613
2021-05-25 23:28:53 -04:00
Dan Davison
6be96be6b9 Edit README 2021-05-24 19:50:11 -04:00
Dan Davison
d4da66d0fc
Support custom commit line regex when parsing git output (#558)
Fixes #174
2021-05-24 19:39:57 -04:00
Peter Holloway
feb89ac438
Only read major version when parsing less version (#606)
For versions of less that include a point version (eg 581.2), parsing
the whole version 'word' as a usize fails and causes '--no-init' to be
added to less arguments. This prevents less using the alternate screen
and mouse scrolling.

Fixes #582
2021-05-20 16:16:41 -04:00
Dan Davison
1bf8479bb1
Emit 'mode [-+]x' instead of full file permission bits (#607)
Ref #583
2021-05-20 14:45:08 -04:00
Dan Davison
fe16f7533d
Emit description of file mode change (#605)
Fixes #583
2021-05-20 10:37:21 -04:00
Dan Davison
5ece1944f1 Refactor: factor out _parse_file_path function 2021-05-19 21:00:37 -04:00
Dan Davison
ec3bb68be5 Fix typo 2021-05-19 19:01:03 -04:00
Dan Davison
56a69049cf Add git-split-diffs to similar projects section in README 2021-05-10 08:15:12 -04:00
Dan Davison
5a3527d54d Ignore problematic test 2021-05-09 22:33:28 -04:00
Dan Davison
0eca4f8cf5
Use map instead of match (#595) 2021-05-09 22:27:20 -04:00
Dan Davison
53e59f2eb5
Use git diff instead of diff -u (#546)
* Use git diff instead of diff -u

Fixes #543
Might fix #513
2021-05-09 19:36:03 -04:00
Matt Ehlinger
2d6f53004a
docs: wrap link to ubuntu issue in link tag (#585) 2021-05-03 13:45:01 -04:00
Dan Davison
0e99a10e07
Fix ansi syntax theme (#581)
* Update to latest version of bat::terminal::to_ansi_color

Fixes #447

* Delete mention of historical syntax theme ansi-light

* Update tests
2021-04-29 22:16:23 -04:00
dependabot-preview[bot]
656a1f939d
Upgrade to GitHub-native Dependabot (#579)
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-04-29 13:07:50 -04:00
Dan Davison
0de020a930
Be less strict about when to try relativizing paths (#576)
With this commit, paths are relativized in `git diff --stat` output
2021-04-25 06:27:31 -04:00
Dan Davison
97671f76b2
Merge pull request #565 from dandavison/file-regex-replacement
Output paths relative to current working directory
2021-04-24 16:47:31 -04:00
Dan Davison
dc8a6fc3d4 Add relative-paths option 2021-04-24 16:43:24 -04:00
Dan Davison
2cc9b5d296 Clippy 2021-04-24 16:43:24 -04:00
Dan Davison
717a63ac90 Add --diff-stat-align-width to control alignment of relativized paths 2021-04-24 16:43:24 -04:00
Dan Davison
6630202259 Output paths relative to current working directory
Fixes #552
2021-04-24 16:43:24 -04:00
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