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

Re: my git problem

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Apr 28, 2008, 19:28 UTC
Message-ID
<alpine.LFD.1.10.0804281222190.3119@woody.linux-foundation.org>
In-Reply-To
<alpine.DEB.1.00.0804282012140.19187@eeepc-johanness>
On Mon, 28 Apr 2008, Johannes Schindelin wrote:
Show 7 quoted lines
> 
> On Mon, 28 Apr 2008, Andrew Morton wrote:
> > 
> > That's missing the "logical" bit :)
> 
> Heh, you're right.  I am too used to Git to think how other people would 
> feel about these things... :-)
No, you are both wrong.

You're wrong because apparently you never did abstract algebra and set theory in school.

If you know math, git actually does the rigth and very much the *logical* thing.

So ".." is a simple difference, while "..." is a more complex difference. 

They mean different things for different operation types, but that is again something a math person takes for granted (ie in algebra, a "+" or "-" is just a random operation that follows certain rules: "a-b" means one thing for the set of real numbers, and something *totally* different if you are talking about set algebra).

And "diff" and "log" really are different operation types, exactly in the sense that "operations on real numbers" are different from "set operations".

A "diff" is more like a difference between two real numbers: it gives a single answer (admittedly the single answer is in a different domain from the arguments). While "log" is very close to a set operation, in that it gives a set as its result.

		Linus
Previous: Johannes SchindelinNext: J. Bruce Fields
Message 9 of 21 in “my git problem”
  1. Andrew MortonApr 27, 2008
  2. Linus TorvaldsApr 27, 2008
  3. Andrew MortonApr 27, 2008
  4. Linus TorvaldsApr 27, 2008
  5. Andrew MortonApr 28, 2008
  6. Johannes SchindelinApr 28, 2008
  7. Andrew MortonApr 28, 2008
  8. Johannes SchindelinApr 28, 2008
  9. Linus TorvaldsApr 28, 2008
  10. J. Bruce FieldsApr 29, 2008
  11. Jakub NarebskiApr 30, 2008
  12. Andrew MortonApr 28, 2008
  13. Linus TorvaldsApr 28, 2008
  14. Andrew MortonApr 28, 2008
  15. Carl WorthMay 1, 2008
  16. Daniel BarkalowApr 28, 2008
  17. Andrew MortonApr 28, 2008
  18. Linus TorvaldsApr 28, 2008
  19. Johannes SchindelinApr 28, 2008
  20. Linus TorvaldsApr 28, 2008
  21. Andrew MortonApr 29, 2008

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.