threads / discuss / 4171

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

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

## tl;dr

2 messages between May 16, 2006 and May 16, 2006.

replies: 1people: 2as markdown or json

Santi· May 16, 2006, 22:24 UTC · lore
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· May 16, 2006, 22:44 UTC · re: Santi · lore

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

Santi <sbejar@gmail.com> writes:
Show 10 quoted lines
> ... 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 ;-).

← back to recent threads