0

The git stat subcommand (or git log --stat etc.) shows us the numbers of lines added and removed. This is obviously useful, but - sometimes you don't care about whitespace and comment additions and removals.

Is it possible to get git to compute its addition and removal statistics - for display purposes only naturally - other than as lines removed and added? e.g. perhaps run something like cloc on the relevant files?

einpoklum
  • 118,144
  • 57
  • 340
  • 684
  • You cannot get *Git* to do this, but Git is a set of tools, and you can use its tools in combination with other tools that *do* do that sort of thing. You'll have to write a lot of software glue to make the tools work with each other. – torek Feb 06 '22 at 00:15

1 Answers1

0

You would not be able to use native Git commands.

Only a third-party could have that kind of additional feature, like cloc you mention.

It was used here, with two checkouts (one for each commits).

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250