Dan Davison
4637403fc1
Delete public homebrew Makefile targets for release
2020-12-13 15:12:11 +00:00
ulwlu
e0e879df24
Add cd to update brew formula in homebrew core
2020-12-13 23:48:11 +09:00
ulwlu
fde369e674
Enable hunk header style with syntax when color only ( #443 )
...
* Enable hunk header style with syntax when color only
* Add comment
* Add comment about color_only if conditions
2020-12-12 14:02:33 +00:00
devzbysiu
c71e3f4e90
fix: Replace unmaintained dirs with dirs-next ( #412 )
...
* fix: Replace unmaintained dirs with dirs-next
* fix: Fix compilation error on macos, remove warn
Co-authored-by: Dan Davison <dandavison7@gmail.com>
2020-12-09 00:31:10 +00:00
ulwlu
b45ed90542
Make commit style to be colored with same structure while color_only #405 ( #438 )
...
* Remove force assing raw to commit style when color_only
* Add test for commit style color when color_only
2020-12-08 17:04:30 +00:00
ulwlu
8cc0c372f4
Make hunk header style to be colored with same structure while color_only #405 ( #437 )
...
* Remove force passing raw to hunk header style when color_only
* Handle hunk header color when color_only
* Add test for hunk header style color when color_only
* Delete fixme because it actually is required
* Add comment for condition that keeps structure when color_only and raw mode
2020-12-08 15:51:52 +00:00
ulwlu
1dfb1f7fb1
Make file style to be colored with same structure while color_only #405 ( #436 )
...
* Add config property of color_only
* Delete force assign raw to file_style when color_only
* Print filemeta in color with rawline when color_only mode
* Cargo fmt
* Add test if file_style with color_only has style
* Add comment about color_only
2020-12-08 14:01:47 +00:00
Dan Davison
f83f53f9d3
Reset highlighter after painting hunk header ( #435 )
...
Fixes #281
2020-12-07 00:26:40 +00:00
Dan Davison
1a5959a6d3
Commit test examples
2020-12-05 23:24:39 +00:00
Dan Davison
e198c0d841
Exclude bat_utils from test coverage calculations
2020-12-05 21:31:45 +00:00
Dan Davison
b9a76d4523
Resolve TODO
2020-12-05 21:30:22 +00:00
Dan Davison
5b0bbb5bbe
Merge pull request #431 from dandavison/update-to-vte-v0.9.0
...
Update to vte v0.9.0
2020-12-05 20:44:23 +00:00
Dan Davison
5a78bf6c57
Update handling of underline case
...
Co-authored-by: Christian Duerr <contact@christianduerr.com>
2020-12-05 20:11:02 +00:00
Dan Davison
6d4392517a
Update to vte 0.9.0
...
See
https://github.com/alacritty/vte/releases/tag/v0.9.0
https://github.com/alacritty/vte/compare/v0.8.0...v0.9.0
576252294d (diff-49ac9e6f6e6a855312bfcd393201f18ca53e6148c4a22a3a4949f1f9d1d137a8)
2020-12-05 19:51:27 +00:00
Dan Davison
e5ea573a94
Revert "Revert "Bump vte from 0.8.0 to 0.9.0 ( #391 )""
...
This reverts commit da2ba61163
.
2020-12-05 19:51:27 +00:00
Dan Davison
51e1fcdd43
Merge pull request #430 from dandavison/345-fix-prefix-painting
...
Fix prefix painting
2020-12-05 18:08:24 +00:00
Dan Davison
b85936d90a
Pass pre-painted prefix as Option
2020-12-05 17:23:31 +00:00
Dan Davison
e455eb9d74
Pass pre-painted prefix
2020-12-05 17:08:33 +00:00
Dan Davison
4b99d7c994
Expose line-buffer-size as a new option ( #429 )
...
Fixes #427
2020-12-05 02:05:27 -05:00
Dan Davison
7357148546
Fix whitespace errors under keep-plus-minus-markers ( #425 )
...
* Add failing test of added empty line with keep-plus-minus-markers
* Fix whitespace error flagging with keep-plus-minus-markers
Fixes #388
* Possibly more efficient implementation
* Fix clippy
* Fix clippy II
* Increase tarpaulin timeout
* Increase tarpaulin timeout
* Add failing test of line with one non-whitespace character
* Fix test of line with one non-whitespace character
* Revert tarpaulin changes
2020-12-05 06:06:31 +00:00
Dan Davison
beb700f889
Recommend release build in CONTRIBUTING.org
2020-12-05 04:50:41 +00:00
Dan Davison
d0b5262fa3
Rearrange badges
2020-12-04 22:31:44 +00:00
Dan Davison
970555b68a
Disable test
2020-12-04 22:20:02 +00:00
Dan Davison
ff4182c2fb
Use .lines() instead of .split("\n")
2020-12-04 19:33:56 +00:00
Dan Davison
fd67277346
Change color used in test
...
magenta is confusing because it is used as a whitespace error default
2020-12-04 19:33:56 +00:00
Dan Davison
d68001471d
Add test coverage of main.rs ( #423 )
...
* Refactor: pass handle to writer
* Add test of list_syntax_themes
* Add test of show_syntax_themes
* Refactor: pass writer handle
* Add test of show_config
* Exclude main function from coverage calculations
* DEBUGGING
* Refactor: only use stdin if non-empty
Motivation: in the CI test build, atty::is(stdin) seems to be
returning false.
2020-12-03 19:18:44 -05:00
Marco Ieni
0ddd064819
delete travis ci ( #418 )
...
Signed-off-by: MarcoIeni <11428655+MarcoIeni@users.noreply.github.com>
Co-authored-by: Dan Davison <dandavison7@gmail.com>
2020-12-03 16:19:09 -05:00
Dan Davison
15d06cbf75
Disable some clippy warnings ( #422 )
2020-12-03 15:14:38 -05:00
Dan Davison
8e65ea071a
Remove Travis config
...
Ref #396
2020-12-03 11:49:29 -05:00
Dan Davison
ed39e4c813
Fix end-to-end test shell scripts
2020-12-03 11:39:37 -05:00
Dan Davison
0ecbe6e70a
Delete Travis badge
2020-12-02 15:41:05 -05:00
Marco Ieni
2cfc0aafa4
add cd ( #417 )
...
Signed-off-by: MarcoIeni <11428655+MarcoIeni@users.noreply.github.com>
2020-12-02 09:40:17 -05:00
Marco Ieni
9d72205be8
ci: add unit tests for other linux targets ( #413 )
...
* ci: add unit tests for other linux targets
Signed-off-by: MarcoIeni <11428655+MarcoIeni@users.noreply.github.com>
* ci: runs all ubuntu configurations
Signed-off-by: MarcoIeni <11428655+MarcoIeni@users.noreply.github.com>
* ci: update matrix variables
Signed-off-by: MarcoIeni <11428655+MarcoIeni@users.noreply.github.com>
* ci: use cross for i686
Signed-off-by: MarcoIeni <11428655+MarcoIeni@users.noreply.github.com>
2020-11-29 17:47:25 -05:00
Marco Ieni
64a9027f96
GitHub Continuous Integration: run tests on linux, mac and windows ( #411 )
...
* GitHub actions: add integration tests
Signed-off-by: MarcoIeni <11428655+MarcoIeni@users.noreply.github.com>
Co-authored-by: danyspin97 <oss@danyspin97.org>
Co-authored-by: surveyor3 <samuelebertollo.sb@gmail.com>
* GitHub actions: fix jobs names
Signed-off-by: MarcoIeni <11428655+MarcoIeni@users.noreply.github.com>
* GitHub actions: remove windows from integration tests
Signed-off-by: MarcoIeni <11428655+MarcoIeni@users.noreply.github.com>
Co-authored-by: danyspin97 <oss@danyspin97.org>
Co-authored-by: surveyor3 <samuelebertollo.sb@gmail.com>
* GitHub actions: fix target variable name
Signed-off-by: MarcoIeni <11428655+MarcoIeni@users.noreply.github.com>
Co-authored-by: danyspin97 <oss@danyspin97.org>
Co-authored-by: surveyor3 <samuelebertollo.sb@gmail.com>
Co-authored-by: danyspin97 <oss@danyspin97.org>
Co-authored-by: surveyor3 <samuelebertollo.sb@gmail.com>
Co-authored-by: Dan Davison <dandavison7@gmail.com>
2020-11-28 14:48:40 -05:00
Dan Davison
4f167f4c7a
Fix symlink
2020-11-28 10:32:39 -05:00
Marco Ieni
5fd7a1acea
CI: add code coverage ( #409 )
...
Signed-off-by: MarcoIeni <11428655+MarcoIeni@users.noreply.github.com>
2020-11-25 23:27:31 -05:00
Dan Davison
2309db4436
Link to x86_64-unknown-linux-gnu instead of x86_64-unknown-linux-musl
...
Ref #392 thanks @phil-blain
2020-11-23 11:05:17 -05:00
Dan Davison
792d3189be
Merge pull request #403 from dandavison/392-copied-files
...
Handle copied files
2020-11-22 20:41:27 -05:00
Dan Davison
af27c560f7
Handle copied files
...
Fixes #392
2020-11-22 20:26:34 -05:00
Dan Davison
c6dd835752
Add failing test of copied file diff
...
Ref #392
2020-11-22 20:18:37 -05:00
Dan Davison
f52464c1af
Refactor: parse file meta line
...
In preparation for #392
2020-11-22 20:17:55 -05:00
Dan Davison
54f363db05
Handle common case first and minor efficiency tweak
2020-11-22 19:08:57 -05:00
Marco Ieni
68498c455a
ci: add end to end tests ( #400 )
2020-11-22 18:16:30 -05:00
ulwlu
123e883bcb
Fix diff interactivefilter when decoration option is enabled ( #367 )
...
* Add test for diffInteractiveFilter for all options
* Disable **-decoration-style when color-only
* Edit color-only one-to-one test cases
Co-authored-by: ryuta69 <eyma22s.yu@gmail.com>
Co-authored-by: Dan Davison <dandavison7@gmail.com>
2020-11-22 15:07:27 -05:00
Marco Ieni
670f5a3fe9
add audit and some CI on ubuntu ( #399 )
...
* add audit and CI on ubuntu
* revert Contents changes in README
Signed-off-by: MarcoIeni <11428655+MarcoIeni@users.noreply.github.com>
* README: restore new line
Signed-off-by: MarcoIeni <11428655+MarcoIeni@users.noreply.github.com>
2020-11-22 14:27:57 -05:00
Marco Ieni
47198cc9f2
remove unuseful to_vec function ( #397 )
...
It caused a clippy warning, too
2020-11-22 12:40:33 -05:00
Marco Ieni
2289337b0a
ci: verify code is well formatted ( #393 )
...
Signed-off-by: MarcoIeni <11428655+MarcoIeni@users.noreply.github.com>
2020-11-22 11:26:21 -05:00
Marco Ieni
005e3568b9
use push() instead of push_str() for single char ( #394 )
...
This solves a clippy warning
2020-11-22 11:21:30 -05:00
Dan Davison
6358ee8592
Remove debugging print statement
2020-11-20 20:27:42 -05:00
Dan Davison
da2ba61163
Revert "Bump vte from 0.8.0 to 0.9.0 ( #391 )"
...
This reverts commit 05c4d5e8d2
.
2020-11-20 20:27:14 -05:00