# Ouput of git diff with <ent>:<path>

2 messages from 2006-05-16 to 2006-05-16. Participants: Santi, Junio C Hamano.
Thread: https://gitlist.dev/t/4171

## Santi, 2006-05-16 22:24

Subject: Ouput of git diff with <ent>:<path>
Message-ID: <8aa486160605161524j5d7e672eo@mail.gmail.com>
URL: https://gitlist.dev/e/8aa486160605161524j5d7e672eo%40mail.gmail.com

```
Hi *,

   just curious if this is the expected output. I find this syntax
very usefull but the "a/v1.3.3:" of even without the tree "a/:" a bit
confusing. And I didn't expect the rename from/to neither the
similarity index 0%.

diff --git a/v1.3.3:Makefile b/Makefile
similarity index 0%
rename from v1.3.3:Makefile
rename to Makefile
index b808eca..55d1937 100644
--- a/v1.3.3:Makefile
+++ b/Makefile

Thanks.

Santi

```

## Junio C Hamano, 2006-05-16 22:44

Subject: Re: Ouput of git diff with <ent>:<path>
Message-ID: <7vwtcl4mke.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vwtcl4mke.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <8aa486160605161524j5d7e672eo@mail.gmail.com>

```
Santi <sbejar@gmail.com> writes:

> ... I didn't expect the rename from/to neither the
> similarity index 0%.
>
> diff --git a/v1.3.3:Makefile b/Makefile
> similarity index 0%
> rename from v1.3.3:Makefile
> rename to Makefile
> index b808eca..55d1937 100644
> --- a/v1.3.3:Makefile
> +++ b/Makefile

Yes I am aware of this one; I just haven't bothered to deal with
it.

It looks at two strings, "v1.3.3:Makefile" and "Makefile", and
says "they have different names -- they are renamed".

Patches welcome as long as you do not break more usual cases
;-).

```
