software-gardening / almanack

An open-source handbook of applied guidance and tools for sustainable software development and maintenance.
https://software-gardening.github.io/almanack
BSD 3-Clause "New" or "Revised" License
0 stars 2 forks source link

Add a file-based function that tracks lines of code added or removed. #54

Closed willdavidson05 closed 3 months ago

willdavidson05 commented 3 months ago

Existing issue check

Description

I want to develop a file-based function that tracks lines of cod(LoC) added or removed. This function will reference an existing git parsing function,which extracts commit history and retrieves the relevant .git files. The LoC function should accurately calculate the absolute value of lines changed, including both additions and deletions.

Example

def get_loc_changes_from_commit(commit):

def track_loc_changes(commit_history):

commit_history = git_extracting_function() #referencing git_extracting function that is a dictionary of commit hashes, with corresponding information 

Would you like to work on a solution for this?