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

2 messages from 2009-01-23 to 2009-01-23. Participants: Sitaram Chamarty.
Thread: https://gitlist.dev/t/17326

## Sitaram Chamarty, 2009-01-23 11:28

Subject: git blame: two "-C"s versus just a single -C
Message-ID: <slrngnjafr.iaa.sitaramc@sitaramc.homelinux.net>
URL: https://gitlist.dev/e/slrngnjafr.iaa.sitaramc%40sitaramc.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?

```

## Sitaram Chamarty, 2009-01-23 19:12

Subject: Re: git blame: two "-C"s versus just a single -C
Message-ID: <slrngnk5k2.49k.sitaramc@sitaramc.homelinux.net>
URL: https://gitlist.dev/e/slrngnk5k2.49k.sitaramc%40sitaramc.homelinux.net
In-Reply-To: <slrngnjafr.iaa.sitaramc@sitaramc.homelinux.net>

```
On 2009-01-23, Sitaram Chamarty <sitaramc@gmail.com> wrote:
> 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?

(replying to myself...)

It works when I give it three "-C" arguments.  I thought it
was supposed to be 2 though.

```
