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

Re: is this data corruption?

From
SWSamuel Wales <samologist@gmail.com>
Date
Jan 1, 2023, 01:15 UTC
Message-ID
<CAJcAo8scjTMqUGsJ8BDp95avmmv1vEvEUx-iqNvN14f9VkkTGg@mail.gmail.com>
In-Reply-To
<CAJcAo8tY55sUNr=HX9-tVPYDoSOx-xkH0WtZuXuLqs0S3sXu-A@mail.gmail.com>

as expected, there is only one copy of bigpart is a partition in all of my rsnapshot files and all of my emacs backup files.

therefore, the diff in git and magit are incorrect. it was not a question of me removing a duplicate.

for future reference, is this mailing list correct for this question or should i use the git help list which i discovered just now?

On 12/30/22, Samuel Wales <samologist@gmail.com> wrote:
Show 71 quoted lines
> more below.
>
> On 12/30/22, rsbecker@nexbridge.com <rsbecker@nexbridge.com> wrote:
>> On December 30, 2022 7:18 PM, Samuel Wales wrote:
>>>i am not subscribed, but am of the impression that's ok.  please copy me
>>> directly.
>
> ...
>
>> I cannot account for your emacs issues, but have a question. Have you
>> done
>> any git add operations? Git diff is subject to what specifically is
>> staged.
>
> idk what this means.  there is nothing in the staging area at this
> time, if that is relevant.
>
>> So you might be comparing your file with partially staged content that
>> could
>> account for partial diffs. See if diff --cached makes a difference. Also
>> try
>
> diff --cached produces nothing.  0 bytes.
>
>> different algorithms, like --patience or --diff-algorithm=histogram.
>
> i tried both with git 2.20.  they produce different output from
> regular git diff.  i looked for the paragraph i mentioned.  in regular
> git diff, the problem is the same as i described, with - - +.  in both
> patience and histogram, it is -.
>
> it occurs to me that, although unlikely, i might have in principle had
> a duplicate copy of those lines in A, and deleted one, and moved the
> other, when i created the current version, B. thus, i /think/ both
> regular and patience/histogram could be /in principle/ correct on that
> one point.  to confirm, i will check rsnapshot using grep -c to count
> the matches in all versions of the original files.  unless i report
> back, the number will be 1 in all of them, i.e. git diff and magit
> status buffer are both producing an incorrect diff.
>
> however, even if this is user error, i.e., i deleted a duplicate and
> moved it, the patience/histogram - result seems still incorrect:
>
>  The next few commands work with both grub> and grub rescue>.
> -***************** REF bigpart is a partition
> -biglike and homelike are distracting nonsense i think except
> -to describe inferior filesets.  anomalous subset of home
> -might be called homelike or so.
>
>  1) The first command you should run invokes the pager, for
>
> you can see here that the context lines are from a different org
> entry.  it is intermingling a live - line with a context line that is
> not adjacent to it.  that seems corrupt unless i, even more
> improbably, moved an entry from inside another entry.
>
>>
>> --Randall
>
>
>
>>
>>
>
>
> --
> The Kafka Pandemic
>
> A blog about science, health, human rights, and misopathy:
> https://thekafkapandemic.blogspot.com
>
-- 
The Kafka Pandemic

A blog about science, health, human rights, and misopathy:
https://thekafkapandemic.blogspot.com
Previous: Samuel WalesNext: Samuel Wales
Message 4 of 9 in “is this data corruption?”
  1. Samuel WalesDec 31, 2022
  2. rsbecker@nexbridge.comDec 31, 2022
  3. Samuel WalesDec 31, 2022
  4. Samuel WalesJan 1, 2023
  5. Samuel WalesJan 1, 2023
  6. Samuel WalesDec 31, 2022
  7. Junio C HamanoJan 1, 2023
  8. Samuel WalesJan 1, 2023
  9. Samuel WalesJan 1, 2023

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.