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

Re: jk/maint-merge-rename-create

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 20, 2011, 16:08 UTC
Message-ID
<7voc1scwo6.fsf@alter.siamese.dyndns.org>
In-Reply-To
<BANLkTimkm4SU8nML_6Q7Q34faBziJ=gheA@mail.gmail.com>
Elijah Newren <newren@gmail.com> writes:
> --- Why doesn't break detection work as I expect? ---
> $ git init -q
> $ printf "1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n" >a
> $ printf "a\nb\nc\nd\ne\nf\ng\nh\ni\nj\n" >b

Use something non-trivial. Taking a real-life file COPYING from our source set, I can do this:

	$ git init
	$ cp $git_src/COPYING a
        $ tr 'A-Za-z' 'N-ZA-Mn-za-m' <a >b
	$ git add a b
        $ git commit -m ab
        $ git mv a c; git mv b a; git mv c a
        $ git diff --stat -M -B HEAD
         b => a | 0
         a => c | 0
         2 files changed, 0 insertions(+), 0 deletions(-)
Previous: Elijah Newren
Message 2 of 2 in “jk/maint-merge-rename-create [Was: Re: What's cooking in git.git (Jun 2011, #02; Sat, 11)]”
  1. Elijah NewrenJun 18, 2011
  2. Junio C HamanoJun 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.