Daniel Hofstetter
2a899a9fc7
Fix clippy warnings in tests
...
from needless_borrows_for_generic_args lint
2024-09-06 09:27:53 +02:00
Tanmay Patil
ba7cb0aef9
Do not create dummy files
...
Since we now returning SystemTime::now() for invalid file input,
there is no need to crate dummy files
2024-04-14 22:56:37 +05:30
Tanmay Patil
900e1c3a68
Tests: Replace modification time in diff with "TIMESTAMP" placeholder
2024-04-14 13:43:30 +05:30
Tanmay Patil
00e18a6b0c
Define assert_diff_eq macro for context&unified diff comparison
2024-04-10 22:20:48 +05:30
Tanmay
61fb0657c1
Merge branch 'main' into context-diff-modification-time
2024-04-04 19:56:13 +05:30
Sylvestre Ledru
281098d751
Run clippy pedantic fixes
2024-04-03 23:25:48 +02:00
Tanmay Patil
a3a372ff36
Display modification times of input files in unified diff
2024-04-04 00:13:41 +05:30
Tanmay Patil
5b814f8530
Fix tests
2024-04-03 10:50:52 +05:30
Tanmay Patil
88a7568b52
Merge branch 'main' into context-diff-modification-time
2024-04-01 13:05:37 +05:30
Olivier Tilloy
e6a0ba28c5
Pass a Params reference to the various diff() functions, instead of a long list of arguments
2024-03-31 21:27:28 +02:00
Tanmay Patil
80c9944bf7
Create foo/bar in target/context-diff
2024-03-31 22:57:51 +05:30
Sylvestre Ledru
043c5f9493
Merge branch 'main' into context-diff-modification-time
2024-03-31 16:17:23 +02:00
Tanmay Patil
9ff8f89626
Fix tests
2024-03-31 16:14:44 +05:30
Olivier Tilloy
f2fd2127ed
Politely ask clippy to not complain about too many arguments
2024-03-28 18:10:31 +01:00
Olivier Tilloy
e0283083f2
Implement --tabsize option
2024-03-28 18:10:29 +01:00
Olivier Tilloy
8d65c2badd
Implement -t/--expand-tabs option
2024-03-28 18:09:03 +01:00
Tanmay Patil
42eb15b87a
Display modification times of input files in context diff
...
Fixes #31
2024-03-27 22:46:23 +05:30
Daniel Hofstetter
f916f1ce86
clippy: fix warnings from useless_vec lint
2024-03-24 14:05:44 +01:00
Olivier Tilloy
4ed7ea1553
Implement -q/--brief option ( fixes #19 ) ( #20 )
...
* Implement -q/--brief option
* Optimization: stop analyzing the files as soon as there are any differences
* Unit tests for the stop_early parameter
* Simplify checks
2024-03-19 11:45:06 +01:00
Sylvestre Ledru
1372c5386c
use pretty assertions to help with Windows debug
2024-01-23 12:36:57 +01:00
Sylvestre Ledru
d891e1034d
run clippy pedantic
...
$ cargo +nightly clippy --allow-dirty --fix -- -W clippy::pedantic
2024-01-23 12:36:38 +01:00
Sylvestre Ledru
fdc35f6b8e
use mod tests + bring back the function used only for tests
2024-01-23 10:12:08 +01:00
Sylvestre Ledru
a10ef621c8
Ajust the test paths
2024-01-23 10:06:02 +01:00
Sylvestre Ledru
0b2505d249
simplify the structure of the crate
2024-01-22 22:01:07 +01:00