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

Re: Does content provenance matter?

From
Junio C Hamano <gitster@pobox.com>
Date
May 8, 2012, 00:11 UTC
Message-ID
<7v62c73528.fsf@alter.siamese.dyndns.org>
In-Reply-To
<7vaa1j357a.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
> But a more illustrative situation to consider is this.  What if the change
> were not just "copy B/X to C/X", but was "concatenate the first half of
> B/X and the second half of C/X to create a new D/X".
A crucial question to the original poster was missing here:
    If "a system that tracks provenance better than Git" wanted to record
    something in such a situation, what does it record and how is the
    recorded information used?
    
Show 12 quoted lines
> As it happens, because our commit records the whole tree state and its
> parent commit, the "content provenance" of what is in D/X is precisely
> tracked.  Look at the tree of the parent commit and look at the result,
> and you will notice the first half of D/X is identical to the first half
> of B/X before the commit and the second half of D/X is identical to the
> second half of C/X before the commit.
>
> In a situation where "provenance" is disputed, it does not matter if D/X
> was created by mechanically running
>
> 	head -n $n B/X >D/X
> 	tail -n $n C/X >C/X
Typo: "tail -n $n C/X >>D/x"
Show 11 quoted lines
>         
> or if you typed the file afresh.  You could try to argue "No, your honour,
> I did not copy from these two files.  I typed it myself from scratch and
> there is no plagiarism involved.  They are all my words."  But in the end,
> by comparing the tree state before your change and after your change, it
> would be very clear to any sane person that D/X is identical to the first
> half of B/X and the second half of C/X.
>
> Also see http://article.gmane.org/gmane.comp.version-control.git/217 aka
> one of the most important messages in the history of the Git mailing list
> for inspirations.
Previous: Junio C HamanoNext: Jakub Narebski
Message 9 of 10 in “Does content provenance matter?”
  1. Kelly DeanMay 5, 2012
  2. Thomas RastMay 7, 2012
  3. Kelly DeanMay 7, 2012
  4. PJ WeisbergMay 7, 2012
  5. Kelly DeanMay 7, 2012
  6. Andrew ArdillMay 8, 2012
  7. Philip OakleyMay 8, 2012
  8. Junio C HamanoMay 8, 2012
  9. Junio C HamanoMay 8, 2012
  10. Jakub NarebskiMay 7, 2012

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.