Hi folks, Today I wanted to continue hacking on the git version of Factor but the stop-world word was removed and not re-added (thanks Slava, ruining my fun again). After much googling and cursing at git I came up with the following:
while not grep stop-world extra/ui/ui.factor ; git reset --hard HEAD\^ ; end This is a bit of fish code (fishshell.org) that continually rolls back my copy of the factor source until the stop-world word shows up in the ui.factor file (where it was originally). This produces the following output: HEAD is now at 36f00e8... Merge branch 'master' of git://factorcode.org/git/factor HEAD is now at 937446c... Editors tweaks HEAD is now at 204069e... Improve editor gadget selection behavior HEAD is now at a61c0d5... Fix definition of macro predicate class HEAD is now at cd84465... Documentation fix HEAD is now at 8122778... Improve multi-click detection logic HEAD is now at a7ef4eb... Fix saving UI state in image HEAD is now at c5c7999... Doc update : stop-world ( world -- ) So it looks like the word was removed during a doc update. Now I have my git back and I can continue hacking on the factor GC. Some important things to know about this command: 1) Don't just do the "not grep" while loop, this was a specialized thing I did to find the change where stop-world was last living. 2) The *real* command for rolling back your git is: git reset --hard HEAD\^ (not with a lowercase head as was mentioned a few times). I put the \ in because fish thinks ^ is important. 3) Be careful it doesn't wipe out anything you've been hacking on. This is a hard reset so it will erase your stuff. 4) When you then do git pull the next time it will resurrect you to the new head, so you're not losing anything. I've now got my gear setup at home and should be able to make a build farm for x86-64, x86-32, and x86-32 OS X. I'll hopefully be able to add a similar "who broke the build" thing soon for various platforms. Have fun folks! -- Zed A. Shaw - Hate: http://savingtheinternetwithhate.com/ - Good: http://www.zedshaw.com/ - Evil: http://yearofevil.com/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
