Commit Graph

1987 Commits (9acb7e9a3a8936dc19d447bcafcbb8e9d4e3550c)

Author SHA1 Message Date
Wilfred Hughes 6f47e787ab Format errors more consistently 2025-10-22 01:03:01 +07:00
Wilfred Hughes a96ed2de96 Improve binary change descriptions 2025-10-22 00:49:42 +07:00
Wilfred Hughes 86e31458fc Use colour to make errors more obvious 2025-10-20 00:47:53 +07:00
Wilfred Hughes a22b32d82d Clarify doc comment 2025-10-20 00:38:48 +07:00
Antonin Delpeuch ef5cd765ef Unvendor tree-sitter-qmljs 2025-10-18 09:57:38 +07:00
Wilfred Hughes 160e184933 Revert "Autodetect dark/light terminals"
This reverts commit bf335094b8.

Doing `git dlog -p` and waiting shows a bunch of

ESCESCESC

in the terminal, so I don't think terminal-colorsaurus is
quite ready for difftastic yet.
2025-10-17 00:27:44 +07:00
Antonin Delpeuch 2a65dd7e02
Migrate to tree-sitter-sequel (#905)
For #891.
2025-10-15 00:52:40 +07:00
Wilfred Hughes aca32ba1ac Add doc comments 2025-10-14 00:26:29 +07:00
Antonin Delpeuch b0e331eb2f Unvendor tree-sitter-ada 2025-10-12 22:53:42 +07:00
Wilfred Hughes 43274db8ca Silence a clippy lint 2025-10-11 23:08:14 +07:00
Wilfred Hughes fadf9b68ed Fix clippy warning 2025-10-11 23:07:07 +07:00
Antonin Delpeuch 05a0736862 Unvendor tree-sitter-scheme 2025-10-10 08:49:05 +07:00
Antonin Delpeuch 85bda2f11b Unvendor tree-sitter-racket 2025-10-09 22:55:12 +07:00
Antonin Delpeuch 7cc43998a7 Unvendor tree-sitter-sfapex parser 2025-10-09 07:39:06 +07:00
Antonin Delpeuch 63cfdd2f82 Remove stray comment 2025-10-09 07:38:11 +07:00
Antonin Delpeuch 1bbcb20040 Unvendor tree-sitter-newick
For #891.
2025-10-08 20:14:15 +07:00
Wilfred Hughes 5fb7684b38 Fix broken line wrapping in --help for git invocations 2025-10-07 18:19:34 +07:00
Wilfred Hughes 640358fd7c Only use OSC 8 on a TTY 2025-10-07 18:19:34 +07:00
Antonin Delpeuch 6047469f71 Unvendor tree-sitter-gleam
For #891.
2025-10-07 09:46:07 +07:00
Wilfred Hughes dc37b874ac Make URL clickable in --help 2025-10-06 23:23:29 +07:00
Wilfred Hughes 81c88ba1d6 Document git diff conventions in --help 2025-10-06 23:10:41 +07:00
Wilfred Hughes 7a0e399454 Show example invocations in bold in --help 2025-10-06 23:06:33 +07:00
Wilfred Hughes b57ea96b88 Factor out colour TTY detection 2025-10-06 22:59:04 +07:00
Wilfred Hughes bf335094b8 Autodetect dark/light terminals
Closes #890
2025-10-06 22:23:43 +07:00
Antonin Delpeuch 3e8e78c991
Unvendor tree-sitter-elm (#893)
Co-authored-by: Wilfred Hughes <me@wilfred.me.uk>
2025-10-06 13:53:57 +07:00
Antonin Delpeuch 35f63d1015 Unvendor tree-sitter-devicetree 2025-10-06 21:52:29 +07:00
Antonin Delpeuch 6fbd425b55 Unvendor tree-sitter-dart 2025-10-05 21:09:41 +07:00
Antonin Delpeuch dd5ce7ae3d Unvendor tree-sitter-r 2025-10-05 11:19:48 +07:00
Wilfred Hughes 84d037343d Fix overly wide columns when last hunk is near start of file 2025-10-05 00:27:18 +07:00
Wilfred Hughes 5f43683d99 Continuation dots should depend on file lines, not visible lines 2025-10-04 17:16:49 +07:00
Wilfred Hughes 1033c0d152 Clarify struct field names 2025-10-04 17:15:35 +07:00
Wilfred Hughes 6ffa3613cc Define a separate source dimension that's explicitly the maximum line in the file 2025-10-04 17:14:09 +07:00
Wilfred Hughes 3e8324913f Another doc comment 2025-10-04 17:14:09 +07:00
Wilfred Hughes 117d20c527 Add doc comment 2025-10-04 17:14:09 +07:00
Antonin Delpeuch 6d7b594aca Unvendor tree-sitter-hcl 2025-10-04 09:31:32 +07:00
Antonin Delpeuch 3a94668aee Unvendor tree-sitter-solidity 2025-10-04 09:29:38 +07:00
Wilfred Hughes 65a803b203 Improve column width calculation on hunks
Instead of considering the column width for the large line number in
the hunk, consider the largest line number from all hunks for this
file.

Fixes #753
2025-10-02 22:41:35 +07:00
Wilfred Hughes b1783c4e6a Add comment clarifying . line number rendering rationale 2025-10-02 22:41:35 +07:00
Wilfred Hughes 76eba0c3fe Improve doc comment 2025-10-02 22:41:35 +07:00
Antonin Delpeuch 595eca2edb Unvendor tree-sitter-cmake 2025-10-01 22:33:28 +07:00
Connor McCarthy 7984b49c37 Support `proto` diffs using `tree-sitter-proto` 2025-10-01 22:23:36 +07:00
Wilfred Hughes 8402832c1c Clarify lifetimes
Fixes #869
2025-09-26 06:50:30 +07:00
Wilfred Hughes f4a37c9732 Silence a build warning on newer clippy versions 2025-09-25 07:48:24 +07:00
Wilfred Hughes 7cfa40bf80 Calculating display width should only consider visible lines
This is perf neutral for the usual benchmarks (where diffing is the
bottleneck, not display) and only a small (0.4% instruction count
increase) on the huge_cpp_1.cpp test files.
2025-09-25 07:47:30 +07:00
Dmitry Marakasov 9f31286dc3 Do not use jemalloc on FreeBSD
FreeBSD uses jemalloc anyway, and tikv_jemallocator does not build.
2025-09-24 05:28:09 +07:00
Wilfred Hughes a0ce7b1b78 Remove obsolete comment 2025-09-23 21:02:59 +07:00
Antonin Delpeuch dc4ce18196 Switch to tree-sitter-rust-orchard
Offers better attachment of attributes and doc comments
and supports newer language constructs.
Closes #35.
2025-09-17 23:59:31 +07:00
Dan Cross d6ab90d840 Do not use jemalloc on illumos
jemalloc does not work on illumos; it's use is
already conditional on environments that are not
msvc, so extend the conditionals involved to also
exclude illumos.
2025-09-16 21:05:13 +07:00
Wilfred Hughes 1ec5badfe0 Silence warning on older clippy versions 2025-08-29 22:53:54 +07:00
Wilfred Hughes 13f786a7be Vendor the commonlisp parser again
This allows us to use the C library directly. Using the library from
crates.io would require a fairly big MSRV bump.

https://github.com/tree-sitter-grammars/tree-sitter-commonlisp/issues/45

Essentially reverts 87521ed3fc but we
still have the latest version of the upstream grammar.

Fixes #866
2025-08-16 12:13:46 +07:00