taskolib / libgit4cpp

C++ wrapper for libgit2 with limited functionality
https://taskolib.github.io/libgit4cpp/
GNU Lesser General Public License v2.1
1 stars 0 forks source link

New interface: collect git status as enum #4

Open wyrnat opened 7 months ago

wyrnat commented 7 months ago

[what] create a method which returns the filestatus of the git repository. Same as collect_status but instead of status information as string, enums are used

[why] status() function was before only used as debug or test function. Therefore a string was fine. Now, the library taskolib needs to use this function for decision making. Therefore a string is overkill and an enum does the job.

[how]

Old path is important for renamed or deleted files, new path for everything else.

Finii commented 7 months ago

Now, the library taskolib needs to use this function for decision making.

This is not the case anymore with my recent additions, so there is not really a strong need for the enums anymore.