git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Tackling Git Limitations with Singular Large Line-seperated Plaintext files

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Jun 27, 2014, 20:13 UTC
Message-ID
<CA+55aFyaQJDq4dvPyS3oLJp57J_zEmqbXA5UxzL8fdgAaHpJOA@mail.gmail.com>
In-Reply-To
<57F015EB50E54211BF29FE1F6DE05CF4@black>
On Fri, Jun 27, 2014 at 12:55 PM, Jason Pyeron <jpyeron@pdinc.us> wrote:
>
> The issue will be, if we talk about changes other than same length substitutions
> (e.g. Down's Syndrome where it has an insertion of code) would require one code
> per line for the diffs to work nicely.
Not my area of expertise, but depending on what you are interested in
- like protein encoding etc, I really think you don't need to do
things character-per-character. You might want to break at interesting
sequences (TATA box, and/or known long repeating sequences).

So you could basically turn the "one long line" representation into multiple lines, by just looking for particular known interesting (or known particularly *UN*interesting) patterns, and whenever you see the pattern you create a new line, describing the pattern ("TATAAA" or "run of 128 U"), and then continue on the next line.

Then you diff those "semantically enriched" streams instead of the raw data.

But it probably depends on what you are looking for and at. Sometimes you might be looking at individual base pairs. And sometimes maybe you want to look at the codons, and consider condons that transcribe to the same amino acid to be the same, and not show up as a difference. So I could well imagine that you might want to have multiple different ways to generate these diffs. No?

               Linus
Previous: Jason PyeronNext: Jarrad Hope
Message 7 of 10 in “Tackling Git Limitations with Singular Large Line-seperated Plaintext files”
  1. Jarrad HopeJun 27, 2014
  2. Shawn PearceJun 27, 2014
  3. Junio C HamanoJun 27, 2014
  4. Linus TorvaldsJun 27, 2014
  5. Linus TorvaldsJun 27, 2014
  6. Jason PyeronJun 27, 2014
  7. Linus TorvaldsJun 27, 2014
  8. Jarrad HopeJun 28, 2014
  9. Jakub NarębskiJun 30, 2014
  10. Øyvind A. HolmAug 10, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.