Assuming you have a completely random set of ids, I think the easiest
way to do it would be to extend git-cat-file to accept several ids
and then parse the error output from that.
I'm assuming you will still have to do git-rev-list to get the new commits
since the last known location of a branch head. If so,
git rev-list <bogus-sha1>..<rewound-branch-tip> should be enough to
tell you you need to re-read that branch's entire history.
I just got up though, and since I don't drink coffee, waking up is a lengthy
process for me.
--
Andreas Ericsson andreas.ericsson@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
-
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