r/Common_Lisp • • Oct 11 '26

Gitlab and Git in Common Lisp

http://anvil.common-lisp.net/clo/anvil
15 Upvotes

17 comments sorted by

View all comments

Show parent comment

2

u/digikar Oct 13 '26

Looks like there's magit-difftastic too. This looks neat, thanks!

What do you mean by git packs deltas rather than line diffs? Do you mean if there are a few character changes on one line, then only those few characters enter the commit rather than the entire line?

In that example, I'd expect something like difftastic to show that there is no change. But I'd agree it may not be a useful example.

2

u/TrainsareFascinating Oct 13 '26

I just looked at your comment again, and the example does make sense, and yes, difftastic should show it as unchanged.

Git deltas are stored as edit instructions and are byte-oriented, not line oriented. There are two edit instructions: COPY and INSERT. The deltas are computed “in reverse” order, with the newest version being the base document and the deltas computed for prior versions.