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

Re: questions / suggestions about history simplification

From
Adam Spiers <git@adamspiers.org>
Date
Dec 19, 2013, 20:36 UTC
Message-ID
<20131219203635.GG23496@pacific.linksys.moosehall>
In-Reply-To
<xmqq38lofv8b.fsf@gitster.dls.corp.google.com>
On Thu, Dec 19, 2013 at 12:20:52PM -0800, Junio C Hamano wrote:
Show 6 quoted lines
> Adam Spiers <git@adamspiers.org> writes:
> 
> > 2. What difference does --dense ever make?
> 
> It is set by default, and --sparse is its opposite option, i.e. it
> turns revs->dense off.
Ah.  It appears to be missing from the man page that it's the default.
> When revs->dense is turned off, the usual treesame logic does not
> kick in to rewrite parents in a single strand of pearls (i.e. a
> stretch of history that solely consists of non-merge commits).
I see.
Show 7 quoted lines
> > 3. Why is --sparse so called, given that it increases rather than
> >    decreases the number of commits shown?
> 
> The number of commits in the output will increase by including
> commits that are irrelevant to explain the history of paths
> specified by pathspec in revs->prune.  The information density
> decreases as the result, and that is what "sparse" signifies.

Ah OK, that makes sense now, but not the most intuitive choice of name IMHO. I would have gone for something like --all-commits, but I guess it's way too late to change now.

Previous: Junio C HamanoNext: Junio C Hamano
Message 6 of 14 in “script for reproducing history example in git-log(1) man page”
  1. Adam SpiersDec 19, 2013
  2. questions / suggestions about history simplificationAdam Spiers, Dec 19, 2013
  3. Jonathan NiederDec 19, 2013
  4. Adam SpiersDec 19, 2013
  5. Junio C HamanoDec 19, 2013
  6. Adam SpiersDec 19, 2013
  7. Junio C HamanoDec 19, 2013
  8. Adam SpiersDec 19, 2013
  9. Junio C HamanoDec 19, 2013
  10. Adam SpiersDec 19, 2013
  11. Junio C HamanoDec 22, 2013
  12. Adam SpiersDec 22, 2013
  13. Junio C HamanoDec 26, 2013
  14. Adam SpiersDec 19, 2013

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.