Git Product home page Git Product logo

Comments (6)

casperdcl avatar casperdcl commented on August 23, 2024 3

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.

casperdcl avatar casperdcl commented on August 23, 2024

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.

casperdcl avatar casperdcl commented on August 23, 2024

do let me know if it's not clear enough :)

from git-fame.

movahhedi avatar movahhedi commented on August 23, 2024

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.

movahhedi avatar movahhedi commented on August 23, 2024

I truly value your answer, It is indeed very helpful. Thanks 😊

from git-fame.

movahhedi avatar movahhedi commented on August 23, 2024

--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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.