Message: previous - next
Month: September 2012

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

From: Slávek Banko <slavek.banko@...>
Date: Sat, 29 Sep 2012 02:34:02 +0200
On Saturday 29 of September 2012 02:13:56 Darrell Anderson wrote:
> So checkout only creates a viewing illusion. That is, the package sources
> remain the same as the most recent re-sync and only the view a person has
> is different.
> As my build scripts just copy the package sources directly from GIT, the
> view illusion does not help.
> I am not grasping how my build scripts can distinguish the difference. I
> understand how my eyes distinguish the difference because GIT creates the
> illusion of what I am allowed to see. Yet the underlying sources in the
> package tree remain exactly the same.

If you use in your scripts working tree contents, scripts use what you 
checkout before using scripts. Checkout simply ensures that the working tree 
will look like as it was at the required revision.

But if you use in your scripts git calls - for example git archive, you have 
to make an adjustment in those scripts.