Re: [PATCH 2/5] git-submodule: New subcommand 'summary' (2) - hard work
- From
Ping Yin <pkufranky@gmail.com>
- Date
- Jan 12, 2008, 12:24 UTC
- Message-ID
- <46dff0320801120424v1b780a97x8a4ecfcfe8e52f7@mail.gmail.com>
- In-Reply-To
- <46dff0320801120148r1a760bcdq4b9dcdf31354d9e0@mail.gmail.com>
Show 9 quoted lines
> > > > I think you would want to read full 40-char sha1_src and > > sha1_dst with "while read", and keep that full 40-char in these > > variables, and use them when calling rev-parse here. > > Hmm, precision is really a problem. However, "git diff --raw" will not > always give full 40-char sha1, instead it will give sha1 with enough > length. So maybe i can use the sha1 from "git diff --raw" ? >
Oh, I'm wrong. It seems 'git diff --raw' will always give full 40-char sha1 for submodule entry and abbreviated sha1 for blob entry.
-- Ping Yin