From: "Ping Yin" <pkufranky@gmail.com>
To: "Git Mailing List" <git@vger.kernel.org>
Subject: Re: git diff-index --raw HEAD and git diff --raw HEAD output the same thing?
Date: Sun, 2 Mar 2008 13:24:03 +0800 [thread overview]
Message-ID: <46dff0320803012124m415516cbof1f3056773843455@mail.gmail.com> (raw)
In-Reply-To: <46dff0320803010510q67bc4101k9f85c71e5d20b4@mail.gmail.com>
On Sat, Mar 1, 2008 at 9:10 PM, Ping Yin <pkufranky@gmail.com> wrote:
> Does these two commands output the same content except displaying format?
>
> Follwoing is my test
>
> $ git diff-index --raw HEAD
> :160000 000000 ad1e416e87dc02617de68c41bb18e5abf0e24729
> 0000000000000000000000000000000000000000 D WordBreak
> :160000 160000 34f279b1662a6bef6a8fdea1827bbdbd80f12444
> 0000000000000000000000000000000000000000 M commonmake
> :160000 100644 c517f783d9efb5a8d24f80fb67f644a39afec2a6
> e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 T util
>
> $ git diff --raw HEAD
> :160000 000000 ad1e416e87dc02617de68c41bb18e5abf0e24729 0000000... D
> WordBreak
> :160000 160000 34f279b1662a6bef6a8fdea1827bbdbd80f12444
> c1f46b3f10cc041e196c388490ddb049dacc7dc0 M commonmake
> :160000 100644 c517f783d9efb5a8d24f80fb67f644a39afec2a6 e69de29... T util
>
> Strange things is this line
> :160000 160000 34f279b1662a6bef6a8fdea1827bbdbd80f12444
> 0000000000000000000000000000000000000000 M commonmake
>
> why mod is 160000 while sha1 is 0000...
>
> --
> Ping Yin
>
Any more response? Is this a bug or my misunderstanding?
--
Ping Yin
prev parent reply other threads:[~2008-03-02 5:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-01 13:10 git diff-index --raw HEAD and git diff --raw HEAD output the same thing? Ping Yin
2008-03-01 13:21 ` Johannes Schindelin
[not found] ` <46dff0320803010545n775f1441x579a53a8c07d0892@mail.gmail.com>
2008-03-02 5:22 ` Fwd: " Ping Yin
2008-03-02 5:48 ` Junio C Hamano
2008-03-02 6:07 ` Ping Yin
2008-03-02 5:24 ` Ping Yin [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=46dff0320803012124m415516cbof1f3056773843455@mail.gmail.com \
--to=pkufranky@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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;
as well as URLs for NNTP newsgroup(s).