Can anyone recommend a good app for tracking changes i make in code? I have two saved files and i'd like to see whats different in them. I dont need any syntax or anything, i just want it to highlight the stuff that is different in two files. Google is my friend, but it wont eat the keywords i give it, and your experience will help me. Cheers.
How to track changes in code
Miscellaneous Forums/General Discussion/How to track changes in code to tell the differences between two existing files created before you start using CVS, you can use a DIFF app.
Yea i found ExamDiff
http://www.prestosoft.com/ps.asp?page=edp_examdiff
That took aggges to find, i never knew the used term is "Differencing" thats what i needed.
Thanks.
http://www.prestosoft.com/ps.asp?page=edp_examdiff
That took aggges to find, i never knew the used term is "Differencing" thats what i needed.
Thanks.
Also you can paste it into MS Word and make two docs and then use Tools\Track Chagnes\Compare Documents.
Subversion for version control and tortoise svn as a front end which has a very handy inbuilt diff.
Also, I keep an archive of each working sub-version of a game (happens every few days) so I can go back and check them if I break the code, this is very useful.
Windows comes with a little executable called "fc" or 'file comparison" which has been around since the days of DOS. Although it may only show the byte differences, not sure. But you can try it with some syntax like (at the command line)
fc filename1 filename2 >> textfiletoputitin.txt
fc filename1 filename2 >> textfiletoputitin.txt
For tracking changes, I always keep a modification history section, right in the project's source code. Any changes I make to a version is documented there, and the date that was done is shown too. It is alot of over-head work for me (along with the rest of the internal documentation I do for my projects), and I don't always remember to actually update the logs, but it works out in the long run.
How about we make one?
Im gonna type and think here.
Im gonna type and think here.
Graphics 500,300,16,2 AppTitle "Comparing Docs" file1=ReadFile("file1.bb") out1=WriteFile("temp1.dat") Repeat in$=Trim(ReadLine(file1)) If in$>"" WriteLine(out1,in$) EndIf Until Eof(file1) CloseFile(file1) CloseFile(out1) file2=ReadFile("file2.bb") out2=WriteFile("temp2.dat") Repeat in$=Trim(ReadLine(file2)) If in$>"" WriteLine(out2,in$) EndIf Until Eof(file2) CloseFile(file2) CloseFile(out2) comp1=ReadFile("temp1.dat") comp2=ReadFile("temp2.dat") Repeat in1$=ReadLine(comp1) in2$=ReadLine(comp2) If in1$<>in2$ Print in2$ Else If in1$="" Or in2="" Print "Pre-terminated file or empty line." End If Until Eof(comp1) Or Eof(comp2) CloseFile(comp1) CloseFile(comp2) Print "Done" WaitKey() End
That's really not gonna work very well, PCD. Not well at all...
I use subversion too. It rocks.
ohh well I tried....
not vary hard... nevermind then.
not vary hard... nevermind then.