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

Re: How to verify that lines were only moved, not edited?

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Oct 20, 2011, 06:25 UTC
Message-ID
<4E9FBEC5.2000407@viscovery.net>
In-Reply-To
<7vvcrkdi59.fsf@alter.siamese.dyndns.org>
Am 10/19/2011 19:07, schrieb Junio C Hamano:
> When reviewing a "supposedly move-only" change, I typically just grab +/-
> blocks from the patch, remove the +/- prefix and run comparison between
> them.

Thanks. As I explained to Jeff, I don't have a block-move, but the sort order of a block of lines was changed "in place". It seems I have to fall back to a similarly manual method as well (e.g., compare the whole-file-sorted versions of the pre- and the post-image).

-- Hannes
Previous: Junio C Hamano
Message 5 of 5 in “How to verify that lines were only moved, not edited?”
  1. Johannes SixtOct 19, 2011
  2. Jeff KingOct 19, 2011
  3. Johannes SixtOct 20, 2011
  4. Junio C HamanoOct 19, 2011
  5. Johannes SixtOct 20, 2011

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.