Re: git-diff between /dev/null and blob

From: Jakub Narebski <jnareb@gmail.com>
Date: 2006-08-07 22:52:50
Junio C Hamano wrote:

> Jakub Narebski <jnareb@gmail.com> writes: 

>        git diff v0.99:pull.h fetch.h
>
>         echo extra >>Makefile && git diff :0:Makefile HEAD^^:Makefile
> 
>         H=`(cat Makefile; echo extra) | git hash-object -w --stdin`
>       echo "100644 $H 2       foobar" | git update-index --add --index-info
>       git diff :2:foobar :Makefile
> 
>> git-diff doesn't understand :<stage>:<filename> and :<filename> for
>> accessing index version of blob (git-cat-file for example understands
>> it).
> 
> You probably got this impression from a botched experiment or
> something, but this statement is wrong as demonstrated above.

Right, sorry.

And you can write ./<filename> to distinguish it from revision name, so
proposed ::<filename> extension is not needed.

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git


-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Mon Aug 07 22:53:47 2006

This archive was generated by hypermail 2.1.8 : 2006-08-07 22:54:21 EST