(filename)
| 306 | return out.decode("utf-8").split('\n') |
| 307 | |
| 308 | def get_git_change_years(filename): |
| 309 | git_log_lines = call_git_log(filename) |
| 310 | if len(git_log_lines) == 0: |
| 311 | return [datetime.date.today().year] |
| 312 | # timestamp is in ISO 8601 format. e.g. "2016-09-05 14:25:32 -0600" |
| 313 | return [line.split(' ')[0].split('-')[0] for line in git_log_lines] |
| 314 | |
| 315 | def get_most_recent_git_change_year(filename): |
| 316 | return max(get_git_change_years(filename)) |
no test coverage detected