BrianJ-4 / BVCS

A Git-like version control system implemented in C++
1 stars 0 forks source link

Commit issue #9

Closed BrianJ-4 closed 1 month ago

BrianJ-4 commented 1 month ago

I made a new repo and then I staged and committed a folder that contained two files.

I then modified one of the files and staged and committed it. This second commit only contains the file that I modified in its files directory.

If I switched to a different branch and then came back to original branch, when updating the files in my working directory we would end up only updating the single file from the second commit and the changes from the first commit would not be brought in.

Need to address this before implementing checkout.

BrianJ-4 commented 1 month ago

Implemented fix for this issue, but created new issue.

Now if a file is deleted and the folder that it was in is committed, the file will be brought back because we are copying the previous commit's files directory.

Need to fix this by checking the working directory to see if the file was deleted