Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check out code from old version with Google docs add-on script

I made an add-on that worked on 05/21.

enter image description here

At some point between then and now it broke.

The old code is no longer in the revision history which only goes back to 05/22.

I have tested version 1, and it works, which means it's using the right code.

enter image description here

I can run this working version, but I don't know how I can re-open the code for it.

How do I view the code for version 1 of my add-on?

EDIT

From @BryanP's comment, I've been informed that there is an existing request for this here.

like image 996
michaelsnowden Avatar asked Feb 15 '26 19:02

michaelsnowden


1 Answers

It's a bit round the houses, but you could:

  • Create a test project
  • include the older version of your library
  • Use the debugger to step into the older version of the code and then copy and paste it somewhere safe.

I use this technique to poke around in the libraries I'm using.

like image 200
Andrew Roberts Avatar answered Feb 19 '26 19:02

Andrew Roberts



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!