git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Eric Sunshine <sunshine@sunshineco.com>
Cc: Johannes Schindelin <Johannes.Schindelin@gmx.de>,
	Git List <git@vger.kernel.org>
Subject: Re: What's cooking in git.git (Aug 2022, #02; Fri, 5)
Date: Fri, 19 Aug 2022 17:18:34 -0700	[thread overview]
Message-ID: <xmqqo7wfix7p.fsf@gitster.g> (raw)
In-Reply-To: CAPig+cRp4N=6EktoisKAH09aVAPkPgZfHJYcB5pJFJ-CUpBHFA@mail.gmail.com

Eric Sunshine <sunshine@sunshineco.com> writes:

> Unfortunately, I'm not going to be much help here since I don't grok
> "creation factor" well enough to put an explanation into words, even
> after having read the "algorithm" section multiple times[1]. The
> situation is further confused (at least to me) by the "algorithm"
> section in the `git range-diff` documentation stating that the "fudge
> factor ... should be smaller than 100%", yet your position in this
> discussion is that the creation factor can be greater than 100%.
>
> FOOTNOTES
>
> [1]: I likewise didn't understand it well enough when submitting[2]
> which added --creation-factor to `git format-patch`, which is why I
> punted at that time and simply referred the reader to the `git
> range-diff` documentation.

So it wasn't just me or other folks who were confused in the
original discussion thread that lead to

https://lore.kernel.org/git/xmqqa68nlfiz.fsf@gitster.g/

where I said

    ... The former helps the readers guess what a reasonable value
    they want to specify is (e.g. "I can afford to dedicate yMB"), and
    the latter is essential for the readers to decide how exactly they
    express what they chose (e.g. "I want to give yMB, but it is
    measured in bytes, so I'll write y * 10^20 here").  We need both.

    So _after_ they decide that 1.20 is the right number they want to
    give to --creation-factor, the knowledge that the number is
    expressed as percent does help them to write --creation-factor=120
    correctly (not --creation-factor=1.20).

    But for readers to come up with the number 1.20, there needs a
    better explanation of what the number means in the first place.  "Go
    read the algorithm section" is better than having nothing there, but
    we should be able to do better by having a simple-to-understand
    single paragraph description.

i.e. out of the current documentation, it is hard for readers to
extract information they need to decide what value they want to
specify.  The part of it that talks about <percent> may tell them to
spell "120" when they want to specify 1.20, but that is not all that
helpful when they do not know what criteria they want to use to
choose between 0.60 and 1.20 in the first place X-<.

      reply	other threads:[~2022-08-20  0:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-06  3:38 What's cooking in git.git (Aug 2022, #02; Fri, 5) Junio C Hamano
2022-08-07  3:02 ` Eric Sunshine
2022-08-08 13:46   ` Junio C Hamano
2022-08-10  9:26     ` Johannes Schindelin
2022-08-18 19:07       ` Eric Sunshine
2022-08-20  0:18         ` Junio C Hamano [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xmqqo7wfix7p.fsf@gitster.g \
    --to=gitster@pobox.com \
    --cc=Johannes.Schindelin@gmx.de \
    --cc=git@vger.kernel.org \
    --cc=sunshine@sunshineco.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).