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

git blame: two "-C"s versus just a single -C

From
Sitaram Chamarty <sitaramc@gmail.com>
Date
Jan 23, 2009, 11:28 UTC
Message-ID
<slrngnjafr.iaa.sitaramc@sitaramc.homelinux.net>

I seem to recall (and the docs indicate) that when you *copy* (not move, just copy) a function from file1.c to file2.c, commit, and then do a "git blame -C -C file2.c", it should tell you that those lines came from file1.c

Is this not true? Git 1.6.1, I tried this on a dummy branch where I just copied a good sized function (about 45 lines) from one C program and dumped it at the bottom of a second one, and neither the gui blame nor the CLI blame show me that the lines came from elsewhere.

What am I doing wrong?
Next: Sitaram Chamarty
Message 1 of 2 in “git blame: two "-C"s versus just a single -C”
  1. Sitaram ChamartyJan 23, 2009
  2. Sitaram ChamartyJan 23, 2009

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.