Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
40e0e09
Added semantic diff cleanup
mmzeeman Apr 6, 2026
8b504d5
Upgraded deps, and use proper generator to make utf8 binaries
mmzeeman Apr 7, 2026
4a3afb3
Increased the number of tests proper does
mmzeeman Apr 7, 2026
faed45a
Fix a utf8 matching problem which caused cleanup_semantic to result i…
mmzeeman Apr 7, 2026
222bfad
Robustly handle grapheme counting problems
mmzeeman Apr 7, 2026
7c0ec5d
Robustly handle grapheme counting problems
mmzeeman Apr 7, 2026
4907ec1
Decode line diffs with a tuple instead of an array
mmzeeman Apr 7, 2026
37d50fa
Remove array routines for finding the middle snake
mmzeeman Apr 7, 2026
b822b7b
Update otp_versions for testing
mmzeeman Apr 7, 2026
6fc9c9b
Update otp_versions for testing
mmzeeman Apr 7, 2026
336a95a
Supress dialyzer warning
mmzeeman Apr 7, 2026
1c2c8e8
Extra plt apss for dialyzer
mmzeeman Apr 7, 2026
82122f1
More dialyzer fixes in test
mmzeeman Apr 7, 2026
9e05a94
More strict dialyzer and xref settings
mmzeeman Apr 7, 2026
0af6dbb
More strict dialyzer and xref settings
mmzeeman Apr 7, 2026
51f6231
Added make doc and introduce ex_doc
mmzeeman Apr 8, 2026
6e2a5df
Remove dep zotonic_stdlib and implement html escaping
mmzeeman Apr 8, 2026
53d29fb
binary:replace with replacement function is only available from otp 27
mmzeeman Apr 8, 2026
8d05c22
Changed the internal functions to use utf32 binaries instead of tryin…
mmzeeman Apr 9, 2026
99e22aa
Reuse long and short size
mmzeeman Apr 10, 2026
4d1df30
Using phash2 for keys in the index map can lead to collisions which c…
mmzeeman Apr 10, 2026
a311a71
Fix utf32 size boundary problem:
mmzeeman Apr 10, 2026
9b09fb8
Potential fix for pull request finding
mmzeeman Apr 10, 2026
e281537
Potential fix for pull request finding
mmzeeman Apr 10, 2026
0f049ea
Potential fix for pull request finding
mmzeeman Apr 10, 2026
7fc3b23
Potential fix for pull request finding
mmzeeman Apr 10, 2026
001b75c
Fix text_size test
mmzeeman Apr 10, 2026
b103301
Initial plan
Copilot Apr 10, 2026
3563044
Add seed_test/0 EUnit tests for UTF-32 alignment invariants
Copilot Apr 10, 2026
8317922
Fix misleading comments in seed_test/0
Copilot Apr 10, 2026
c8a197f
Merge pull request #9 from zotonic/copilot/add-eunit-tests-for-seed-f…
mmzeeman Apr 10, 2026
3fbdd22
Fix the aligned_utf32_match function and added tests
mmzeeman Apr 10, 2026
e19afc2
Fix an issue where the overlap could match outside utf32 char boundaries
mmzeeman Apr 10, 2026
953afd4
Fix an issue where the overlap could match outside utf32 char boundaries
mmzeeman Apr 10, 2026
d760a29
Removed unique match function, not relevant for the api and confusing
mmzeeman Apr 11, 2026
b462e21
Use aligned utf32 match to do line_diff. Also removed unneeded conver…
mmzeeman Apr 11, 2026
23ce7dc
Replaced some functions with macro's
mmzeeman Apr 11, 2026
cff9bcd
Some reformatting
mmzeeman Apr 11, 2026
1536077
Potential fix for pull request finding
mmzeeman Apr 12, 2026
554a227
Fix size parameter in common_overlap_loop test
mmzeeman Apr 12, 2026
023124c
Minor refactoring
mmzeeman Apr 12, 2026
5c77594
Fix a problem where cleanup_merge did not collapse all possible outcomes
mmzeeman Apr 12, 2026
0cb1e7f
Don't fall through to default when efficiency cost is mis-configured
mmzeeman Apr 12, 2026
5c8bb4c
Don't attempt to do linemode diffs for terms
mmzeeman Apr 13, 2026
9000ce3
Potential fix for pull request finding
mmzeeman Apr 13, 2026
762fc29
Potential fix for pull request finding
mmzeeman Apr 13, 2026
2350f64
Potential fix for pull request finding
mmzeeman Apr 13, 2026
4385ab8
Potential fix for pull request finding
mmzeeman Apr 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ jobs:

strategy:
matrix:
otp_version: [22,23,24]
otp_version: [26,27,28]
os: [ubuntu-latest]

container:
image: erlang:${{ matrix.otp_version }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Compile
run: make
- name: Test
Expand Down
13 changes: 9 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,18 @@ xref: $(REBAR)
dialyzer: $(REBAR)
$(REBAR) as test dialyzer

clean: $(REBAR)
clean: $(REBAR) clean_doc
$(REBAR) clean

distclean:
rm -rf _build
rm $(REBAR)
clean_doc:
@rm -rf doc

distclean: clean_doc
@rm -rf _build
@rm -f $(REBAR)

doc: $(REBAR)
$(REBAR) ex_doc --output doc --formatter html

# dializer

Expand Down
30 changes: 24 additions & 6 deletions rebar.config
Original file line number Diff line number Diff line change
@@ -1,28 +1,46 @@
{erl_opts, [debug_info, warn_unused, warn_shadow_vars]}.
{deps, [
{zotonic_stdlib, "1.2.3"}
]}.

{deps, [ ]}.

{project_plugins, [rebar3_ex_doc]}.

{hex, [{doc, ex_doc}]}.

{ex_doc, [
{source_url, <<"https://github.com/zotonic/diffy">>},
{extras, [<<"README.md">>, <<"LICENSE">>]},
{main, <<"readme">>}
]}.

{profiles, [
{test, [
{deps, [
{proper, "1.2.0"}
{proper, "1.5.0"}
]},

{xref_checks, [
undefined_function_calls,
undefined_functions,
locals_not_used,
deprecated_function_calls
deprecated_function_calls,
deprecated_functions
]},

{xref_ignores, [
]},

{dialyzer, [
{warnings, [
no_return
no_return,
extra_return,
missing_return,
underspecs
]},
{plt_extra_apps, [
eunit,
proper
]}
]}
]}
]}.

12 changes: 1 addition & 11 deletions rebar.lock
Original file line number Diff line number Diff line change
@@ -1,11 +1 @@
{"1.2.0",
[{<<"proper">>,{pkg,<<"proper">>,<<"1.2.0">>},0},
{<<"zotonic_stdlib">>,{pkg,<<"zotonic_stdlib">>,<<"1.2.3">>},0}]}.
[
{pkg_hash,[
{<<"proper">>, <<"1466492385959412A02871505434E72E92765958C60DBA144B43863554B505A4">>},
{<<"zotonic_stdlib">>, <<"4A33B60C82379169C9934CCD1FC9E512CA16B922E131AD6B6D26E562F66DF9CC">>}]},
{pkg_hash_ext,[
{<<"proper">>, <<"CBC3766C08337806741343D330BF4BCB826155D2141BE8514C4B02858AA19FD3">>},
{<<"zotonic_stdlib">>, <<"4712DD7A0C0C600AFEDAFDA738D40FEBF10CFC2485E62D109361FCC190F7381A">>}]}
].
[].
Loading
Loading