Comments (6)
Does it just count the last r[e]vision on that line?
--loc=surv
indeed counts "just the last revision on that line." It may be useful to also include -M
and -C
options.
looking for the best way to measure how much I have to pay my devs.
Here be dragons 🐉 ... the --cost
options can guesstimate hours & months using different models as per https://github.com/casperdcl/git-fame#faqs - but note:
- there's no way to distinguish between refactoring (presumably high value) & reformatting (presumably lower value)
- generated code (e.g.
package-lock.json
) is probably better measured by number of commits, while functional code (e.g.train.py
) is probably better measured by number of lines - deletions
--loc=del
(removing bad code) and past insertions--loc=ins
(no longer surviving lines which nevertheless influenced the ideas behind the current code) could also both be useful - one line of code may be more valuable than 100. Quality can only be measured by a human
- reviewing other people's code may be valuable but doesn't show up in Git history
- ... the list of caveats goes on
I would at best use git fame
as one of many many ways to help gauge the true value of contributions. One possible strategy is getting people to review each other's work if you feel incapable of reviewing it yourself. I would not suggest paying people solely based on number/rate of commits/lines.
from git-fame.
As per https://github.com/casperdcl/git-fame#documentation "surviving lines of code" (i.e. only currently existing lines, not deleted ones)
from git-fame.
do let me know if it's not clear enough :)
from git-fame.
Thanks for answering.
If it counts lines (files?) which exist now, how is the contribution on one specific line counted? Does it just count the last rivision on that line?
Look, I'm looking for the best way to measure how much I have to pay my devs. What is your suggestion for it? Is it git fame --loc=surv -w -C
? Is it even using git statics at all?
from git-fame.
I truly value your answer, It is indeed very helpful. Thanks 😊
from git-fame.
--loc=surv
counts all files including binary files (like image files), but --loc=ins,del
doesn't? Is there an option to automatically exclude these files? (without using --excl
for every single extension)
How is the surviving code 50879 lines, but the total loc for ins,del
30139?
I tried --warn-binary
for it but it didn't seem to do anything.
F:\xampp\htdocs\test>git fame --loc=surv -t
Processing: 100%|███████████████████████████████████████████████████████████████| 77/77 [00:11<00:00, 6.49file/s]
Total .css: 3866
Total .gitignore: 1
Total .html: 56
Total .jpeg: 349
Total .jpg: 35950
Total .js: 658
Total .php: 4057
Total .png: 5145
Total .sql: 413
Total .svg: 384
Total commits: 181
Total ctimes: 1463
Total files: 112
Total loc: 50879
F:\xampp\htdocs\test>git fame --loc=ins,del -t
Processing: 100%|█████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 1.25repo/s]
Total .css: 8861
Total .gitignore: 3
Total .html: 56
Total .js: 982
Total .json: 72
Total .md: 172
Total .php: 16035
Total .sql: 3906
Total .svg: 12
Total .txt: 40
Total commits: 181
Total ctimes: 397
Total files: 144
Total loc: 30139
from git-fame.
Related Issues (20)
- Long-form --help option does not work with git alias invocation
- snap package not compatible with mounts HOT 11
- Fails to count LOC and files when passing multiple repos HOT 1
- Excluding a folder HOT 4
- Is it support for counting non-empty, non-commented lines of code?
- Get lines of code by file extension for a particular author? HOT 3
- How does it work? Do deleted lines count? HOT 2
- Recursing stats blocked HOT 2
- `--loc=surv` has more loc than `--loc=ins,del` (counts bin files)
- Option for Case-Insensitivity (`CI`) HOT 1
- explain in details the metrics
- JSON Output
- "Dubious ownership in repository" error running Docker container
- [feature] Use shtab to generate shell completion
- wrong loc after author change or repo import HOT 3
- excl appears to have no effect HOT 3
- Count hours based on commits in the GitHub pull requests
- Is it possible to add -until? HOT 1
- ignore "maintenance" user HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-fame.