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

Re: [RFC/PATCH] Document -B<n>[/<m>], -M<n> and -C<n> variants of -B, -M and -C

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Jul 30, 2010, 15:23 UTC
Message-ID
<vpqmxt93sew.fsf@bauges.imag.fr>
In-Reply-To
<7vk4oeuv4b.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 11 quoted lines
> Matthieu Moy <Matthieu.Moy@imag.fr> writes:
>
>> I'm not really happy with my description of -Bn/m, which I essentially
>> took from eeaa46031479 (Junio, Jun 3 2005, diff: Update -B
>> heuristics). Someone with better understanding of how it works can
>> probably propose something better.
>
> Your explanation for '<n>' being the same across -B/-M/-C is reasonable.
> Explanation of '<m>' might want to clarify why it counts only the deletion
> and to mention that "100-similarity != dissimilarity", but as the end-user
> level documentation, these probably are unnecessary.

The thing is: I don't know the anwser myself, so I'm not in a position do write such documentation :-(.

Show 11 quoted lines
>> +-B[<n>]::
>> +-B<n>/<m>::
>>  	Break complete rewrite changes into pairs of delete and create.
>> +	If `n` is specified, it gives the threshold (as a percentage
>> +	of changed lines) above which a change is considered as
>> +	complete rewrite.  For example, `-B90%` means git will detect a
>> +	rewrite if more than 90% of the lines have been modified. ...
>
> I am fine with the use of word "lines" if it is clear that we are giving a
> simplified explanation (white lie) to the readers, but the (dis)similarity
> numbers don't have much to do with "lines".

Likewise, I didn't write "lines" as a white lie, but because of my ignorance ... hence my request for help.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 8 in “Document -B<n>[/<m>], -M<n> and -C<n> variants of -B, -M and -C”
  1. Document -B<n>[/<m>], -M<n> and -C<n> variants of -B, -M and -CMatthieu Moy, Jul 28, 2010
  2. Junio C HamanoJul 29, 2010
  3. Matthieu MoyJul 30, 2010
  4. Junio C HamanoJul 30, 2010
  5. Document -B<n>[/<m>], -M<n> and -C<n> variants of -B, -M and -CMatthieu Moy, Aug 2, 2010
  6. Junio C HamanoAug 2, 2010
  7. Matthieu MoyAug 5, 2010
  8. Document -B<n>[/<m>], -M<n> and -C<n> variants of -B, -M and -CMatthieu Moy, Aug 5, 2010

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.