From: Jakub Narebski <jnareb@gmail•com>
To: git@vger•kernel.org
Subject: Re: git-diff between /dev/null and blob
Date: Mon, 07 Aug 2006 14:52:50 +0200 [thread overview]
Message-ID: <eb7d2s$cq2$1@sea.gmane.org> (raw)
In-Reply-To: 7vejvt8s24.fsf@assigned-by-dhcp.cox.net
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
prev parent reply other threads:[~2006-08-07 12:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-31 1:07 git-diff between /dev/null and blob Jakub Narebski
2006-07-31 6:50 ` Junio C Hamano
2006-08-06 21:02 ` Jakub Narebski
2006-08-06 21:36 ` Junio C Hamano
2006-08-07 12:52 ` Jakub Narebski [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='eb7d2s$cq2$1@sea.gmane.org' \
--to=jnareb@gmail$(echo .)com \
--cc=git@vger$(echo .)kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox