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

Re: statistics

From
Kevin Ballard <kevin@sb.org>
Date
Jul 25, 2008, 22:57 UTC
Message-ID
<65DE6D62-2507-4C49-94A7-B5DBD7FCC8DC@sb.org>
In-Reply-To
<4889B912.9040006@viscovery.net>
On Jul 25, 2008, at 4:29 AM, Johannes Sixt wrote:
Show 12 quoted lines
> Rene Herman schrieb:
>> Hi.
>>
>> Is there a (non-depressing) way of getting "which files did not  
>> change
>> since <rev>" out of git?
>
> What is "non-depressing"?
>
> Try this if you are using bash:
>
>  comm -13 <(git diff --name-only your-rev-here) <(git ls-files)

Neat, I never knew about comm before. I probably would have come up with something like

   cat <(git ls-tree -r $REV) <(git ls-tree -r HEAD) | sort | uniq -d  
| cut -f 2 | sort
-Kevin Ballard
-- 
Kevin Ballard
http://kevin.sb.org
kevin@sb.org
http://www.tildesoft.com
Previous: Johannes Schindelin
Message 7 of 7 in “statistics”
  1. Rene HermanJul 25, 2008
  2. Johannes SixtJul 25, 2008
  3. Rene HermanJul 25, 2008
  4. Johannes SchindelinJul 25, 2008
  5. Johannes SixtJul 25, 2008
  6. Johannes SchindelinJul 25, 2008
  7. Kevin BallardJul 25, 2008

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.