trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: September 2012

Re: [trinity-devel] Revert GIT to a specific date

From: Darrell Anderson <humanreadable@...>
Date: Thu, 27 Sep 2012 18:02:30 -0700 (PDT)
> > I realize that resetting my local repo will mean a
> bandwidth hit when I restore everything. :)
> 
> No, don't think so. You already have a copy of the local
> repo, and you're not deleting any commits... So I think you could
> reset up back to {HEAD}.

That is where I'm confused. I _do_ want to delete all commits more recent than the date to which I reset. Otherwise I am building packages with the same current sources. I won't accomplish anything. I am looking for a way to reset my local repo to commit xxxxxxxx and delete all commits after that date. The final result is a local repo that looks exactly as GIT did on the day of commit xxxxxxxx.

I want to do this to troubleshoot a difficult bug. After installing a GIT package set from several months ago, I know the bug did not exist then. Something happened thereafter. I want to build packages from my local repo but the sources must look exactly the same as whatever date I choose.

I want to start as far back as April 1 and then proceed forward until the bug reappears.

When I do a git log I want the sources to actually reflect the state of that date and not the illusion of that date. I need to do this to the whole repo and not just a specific package module.

Darrell