On Fri, Sep 7, 2012 at 2:27 PM, gianluca <gianlucare...@eurekelettronica.it> wrote: > Andreas Fritiofson wrote: >> >> cd <your OpenOCD repo> >> git fetch http://openocd.zylin.com/openocd refs/changes/83/783/8 && >> git checkout FETCH_HEAD >> > Thank you very much! > > I would like to know if I need to have the __EXACT__ version at the date of > the patchset. In short I think I need the version __BEFORE__ the patchset > date, then apply the fetch command. > > Or is it done automagically by git checkout FETCH_HEAD ??? >
It's all handled by the above command. The fetch will not only fetch the patch but also the complete history which the patch depends on. A git revision identifier (the long hex-string) is a hash of the complete directory tree PLUS all of the branch's history. So by checking out a specific revision (which FETCH_HEAD is a shorthand for) you will get the exact order and content of commits as the patch author had. /Andreas ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ OpenOCD-devel mailing list OpenOCD-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openocd-devel