HI guys,
Could you help me writing a simple version control script for a text files.
the format could be
./version_control [command] [flags] <file(s)> (I want it to be able to work with more than 1 file at the same time)
commands are add and get, add means you add new file(s) to the archive, get means you get files from the archive.
when you first add the files, a changelog is generated and printed out that simply includes date and timestamped when the file is changed.
when the flag -r is used, for example together with *.c files, it will add all of these files to the archive.
Then you could use a get command to pull the file from the archive and create a copy for your own use, if the file exists in the current directory then you should receive a confirmation to overwrite.
additionally, i would like to be able to view changes history using a command like show.
thank you