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

Re: git-rev-list: add "--dense" flag

From
Petr Baudis <pasky@suse.cz>
Date
Oct 22, 2005, 00:37 UTC
Message-ID
<20051022003733.GA8351@pasky.or.cz>
In-Reply-To
<Pine.LNX.4.64.0510211631400.10477@g5.osdl.org>

Dear diary, on Sat, Oct 22, 2005 at 01:40:54AM CEST, I got a letter where Linus Torvalds <torvalds@osdl.org> told me that...

Show 5 quoted lines
> When we use a path filter to git-rev-list, the new "--dense" flag asks
> git-rev-list to compress the history so that it _only_ contains commits
> that change files in the path filter.  It also rewrites the parent
> information so that tools like "gitk" will see the result as a dense
> history tree.

There is no documentation for the --dense flag and it is even missing from the usage string.

But my main concern is - will it be possible to do the rename detection here as well? Using --dense instead of explicit diff-tree calls in cg-log would be nice optimization, but I was about to add support for optional following of renames for cg-log <filename>. That's really pretty useful to have, every time I hit the Junio's big scripts rename I keep repeating that to myself. ;-) Now when core GIT got the comfort of per-file history, I only hope that it will start to annoy you as well.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
VI has two modes: the one in which it beeps and the one in which
it doesn't.
Previous: Linus TorvaldsNext: Petr Baudis
Message 4 of 20 in “git-rev-list: add "--dense" flag”
  1. Linus TorvaldsOct 21, 2005
  2. Linus TorvaldsOct 21, 2005
  3. Linus TorvaldsOct 21, 2005
  4. Petr BaudisOct 22, 2005
  5. Handling renames.Petr Baudis, Oct 22, 2005
  6. Linus TorvaldsOct 22, 2005
  7. Petr BaudisOct 22, 2005
  8. Junio C HamanoOct 22, 2005
  9. Petr BaudisOct 22, 2005
  10. Linus TorvaldsOct 22, 2005
  11. Linus TorvaldsOct 22, 2005
  12. Petr BaudisOct 22, 2005
  13. Linus TorvaldsOct 22, 2005
  14. Junio C HamanoOct 22, 2005
  15. Linus TorvaldsOct 22, 2005
  16. Jonas FonsecaOct 25, 2005
  17. Linus TorvaldsOct 25, 2005
  18. Jonas FonsecaOct 25, 2005
  19. Linus TorvaldsOct 25, 2005
  20. Linus TorvaldsOct 25, 2005

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.