I want to determine git commit metrics using bash script.
But I never use bash script.
The idea is to have the number of commit wich are not referenced in their status during a specific time
(i.e.: not closed or no #nnnn
reference where n
is a number, because we use Redmine to show the reference of open commit)
the algorithm is:
fonction (initial date, final date)
read initial date
read final date
int n=0
while (initial date<date<final date) do
if (status!=closed or status!= #nnnn) //where #nnnn is a reference and n a number
n=+1
end if
end while
echo "the number of none referenced commit is"
echo n
return 0
If there is a specific git command or other idea, please leave a response, it will help me a lot. thank you