oleander/git-fame-rb
소개
기여 내역을 기준으로 기여자를 요약하고 보기 좋게 출력하는 명령줄 도구입니다.
개발 도구측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- -1
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalgit-fame


git-fame is a command-line tool that helps you summarize and pretty-print collaborators, based on the number of contributions.
The statistics are mostly based on the output of git blame on the current branch.
git fame counts the total number of current lines of code (and files) that were last touched by each author, and prints out these totals, along with the number of commits per author, as a sorted table.
Installation
gem install git_fame
Requires Ruby 3.3 or later. The rugged dependency compiles libgit2 during installation, which needs CMake (brew install cmake, apt-get install cmake).
Usage
Usage: git fame [OPTIONS] [PATH]
GitFame is a tool to generate a contributor list from git history
Arguments:
PATH Path or sub path to the git repository
Options:
-A, --after [DATE] Only changes made after this date
-B, --before [DATE] Only changes made before this date
--branch [NAME] Branch, tag or commit to be used as starting point
(default "HEAD")
-E, --exclude [GLOB] Exclude files matching the given glob pattern
-e, --extensions [EXT] File extensions to be included starting with a
period
-h, --help Print usage
-I, --include [GLOB] Include files matching the given glob pattern
--log-level [LEVEL] Log level (permitted: debug, info, warn, error,
fatal)
-v, --version Current version
Examples:
Include commits made since 2010
git fame --after 2010-01-01
Include commits made before 2015
git fame --before 2015-01-01
Include commits made since 2010 and before 2015
git fame --after 2010-01-01 --before 2015-01-01
Only changes made to the main branch
git fame --branch main
Lines as of a tag or commit
git fame --branch v1.0.0
Only ruby and javascript files
git fame --extensions .rb .js
Exclude spec files and the README
git fame --exclude '*/**/*_spec.rb' README.md
Only spec files and markdown files
git fame --include '*/**/*_spec.rb' '*/**/*.md'
A parent directory of the current directory
git fame ../other/git/repo
Use git fame -h or git-fame --help for this text. Git turns git fame --help into git help fame, which looks for a man page that does not exist.
Quote glob patterns, as in the examples, so the shell passes them to git fame instead of expanding them.
What is counted
git fame blames every text file in the given branch, tag or commit (HEAD by default). Binary files and submodules are skipped.
lines: lines in those files that the author changed last.commits: commits by the author that are still the last change to at least one line.files: files with at least one such line.dist: the author's share of all lines, commits and files. A file with lines from several authors counts for each of them, so the file shares can add up to more than 100%.
Authors are told apart by email address.
Development
git clone https://github.com/oleander/git-fame-rb.gitdocker build -t git-fame -f .devcontainer/Dockerfile .docker run -it -v $(pwd):/workspace git-fame bundle exec rspec
Have a look at .devcontainer/Dockerfile and .github/workflows/main.yml for more information.
New release
- In a pull request, bump the version in
lib/git_fame/version.rband move theUnreleasedentries inCHANGELOG.mdto a section headed## [X.Y.Z] - YYYY-MM-DD. The release notes are taken from that section; any other heading falls back to notes generated from the merged pull requests. - Merge the pull request. Once CI passes on
main, thereleasejob tags the merge commit asvX.Y.Z, creates a GitHub release from the changelog section and publishes the gem to RubyGems.
Pushes to main that leave the version unchanged publish nothing.
관련 프로젝트 살펴보기
불러오는 중…