how to track the last lines you modified
I often add a feature to my game (having to change the code in quite a few points), then re-run it, and experience unexpected behaviour or something (well i guess this happens to everyone...)
It would be really helpful if there was a way to check out which were the latest lines you modified/wrote so you can check them for mistakes (like some sort of controller that could take you to the latest line you wrote, then the one before... so you can re-check the latest stuff you wrote without having to remember exactly what you added-changed)
It would be really helpful if there was a way to check out which were the latest lines you modified/wrote so you can check them for mistakes (like some sort of controller that could take you to the latest line you wrote, then the one before... so you can re-check the latest stuff you wrote without having to remember exactly what you added-changed)
©h€ck øut µy stuƒƒ åt ragdollsoft.com
New game in development Rubber Ninjas - Mac Games Downloads
If you use some kind of source control, such as Subversion, then you can do a diff from your last working code to see what you changed.
that could work but it's a bit overkill... meaning you would need to save a new version every time you add something
©h€ck øut µy stuƒƒ åt ragdollsoft.com
New game in development Rubber Ninjas - Mac Games Downloads
That is the whole idea of version control. When something works you save a version.
still i believe my idea could be useful for people that dont want to make a new file every 10 lines
©h€ck øut µy stuƒƒ åt ragdollsoft.com
New game in development Rubber Ninjas - Mac Games Downloads
Make backup copies of each version you modify, but that IS overkill.
"When you dream, there are no rules..."
Najdorf Wrote:still i believe my idea could be useful for people that dont want to make a new file every 10 linesAs I recall, Subversion only saves the diff from the previous revision, not the entire file. It pieces files together for you when you request a particular revision.
Subversion is what you want. It's not "overkill" in any sense.
SubEthaEdit has change hilighting, but only whilst it's open -- as soon as you quit, or close a document, the change information is lost. It also only shows you the new text, not both.
SubEthaEdit has change hilighting, but only whilst it's open -- as soon as you quit, or close a document, the change information is lost. It also only shows you the new text, not both.
Along these lines I kinda wish XCode had Eclipse's compare to local history feature.
---Kelvin--
15.4" MacBook Pro revA
1.83GHz/2GB/250GB
Najdorf Wrote:still i believe my idea could be useful for people that dont want to make a new file every 10 lines
Like was said else where, that's not exactly the case with Subversion, but what difference would it make if it was? Source files aren't that big to begin with. It may seem silly to commit your project every 2 minutes, but if that helps, what difference does it make? You certainly aren't going to run out of disk space from source files.
Scott Lembcke - Howling Moon Software
Author of Chipmunk Physics - A fast and simple rigid body physics library in C.
Not only that, but Subversion manages changelists (repo versions, whatever) and not just individual file histories. So you can commit when it works, then go scribble over whatever the heck you want, and if anything is broken you can see all your changes across all your files since the last good commit, and if something turns out to be broken after you've already committed more stuff, you can see what changed with what.
EDIT: Wow, that was a run-on..
Time for sleep...
EDIT: Wow, that was a run-on..
Time for sleep...
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| OpenGL Velocity and Grouping of Lines (C++, Xcode) | TheThirdL3g | 2 | 2,621 |
Jul 29, 2010 01:28 PM Last Post: SethWillits |
|
| Call For Help: The Game Track Open Source Project | jolivierld | 2 | 2,411 |
Aug 30, 2005 03:48 AM Last Post: jolivierld |
|
| Keeping track of bullets | Bossa Nova | 3 | 2,458 |
Jun 26, 2003 09:09 PM Last Post: OneSadCookie |
|

