> > > > 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 - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html