Re: verifying commit IDs

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andreas Ericsson
Date: Tuesday, August 28, 2007 - 4:21 am

Paul Mackerras wrote:

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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
verifying commit IDs, Paul Mackerras, (Tue Aug 28, 4:06 am)
Re: verifying commit IDs, Andreas Ericsson, (Tue Aug 28, 4:21 am)
Re: verifying commit IDs, Alex Riesen, (Tue Aug 28, 11:20 am)
Re: verifying commit IDs, Jon Loeliger, (Tue Aug 28, 11:27 am)
Re: verifying commit IDs, Junio C Hamano, (Tue Aug 28, 12:19 pm)