I want to create a metric in my project that measures how long does a commit take from its creation till to get into the master branch.
Is it possible? It looks like for fast-forwarded commits I can't get this info from the git log.
If I can get a snapshot of the repository X days ago, maybe I can calculate it. Another option is to get a log that registers when a branch HEAD was modified.
Update: If you create an annotated tag at each release, you can just see the date of the tag that included the commit. Here is how to list the commits included in a tag