File: git-years

package info (click to toggle)
pmdk 1.13.1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 28,944 kB
  • sloc: ansic: 126,815; sh: 21,543; cpp: 9,413; python: 5,893; makefile: 3,119; perl: 2,294; pascal: 1,442
file content (8 lines) | stat: -rwxr-xr-x 270 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
#!/bin/sh
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2019, Intel Corporation

# git-years -- calculate the range of years for a given file from git

git log --pretty='%aI %aE' "$@"|grep '@intel\.com'|cut -d- -f1|sort|
	sed '$p;2,$d'|uniq|tr '\n' -|sed 's/-$//'