git/list[1] front-page[2] threads[3] people[4] search[5] about
 

measuring the % change between two commits

From
Sitaram Chamarty <sitaramc@gmail.com>
Date
Feb 23, 2012, 11:30 UTC
Message-ID
<CAMK1S_gXQaE+RZxe4S7vqAyPka9N9PAoe+557FaLO+JJoJFshA@mail.gmail.com>
I'm trying to come up with a % measure for the changes between two commits.

I don't mind how precisely it is calculated, since this is only for a thresholding purpose where we can adjust the threshold if the way it is calculated is not what we think it should be.

The logging options that put out a % figure only do so for copied/renamed files. Merely modified files do not get a % figure attached.

I could do a --numstat and then do a 'wc -l' on each file I guess, but I was hoping to avoid that.

--dirstat gives you a percentage but does not count the top level directory.
Any ideas?
-- 
Sitaram
Next: Junio C Hamano
Message 1 of 4 in “measuring the % change between two commits”
  1. Sitaram ChamartyFeb 23, 2012
  2. Junio C HamanoFeb 23, 2012
  3. Junio C HamanoFeb 23, 2012
  4. Sitaram ChamartyFeb 24, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.