diff mbox series

[1/3] doc: reword -B option of diff into something sensible

Message ID 20191212204655.10425-1-jn.avila@free.fr (mailing list archive)
State New, archived
Headers show
Series [1/3] doc: reword -B option of diff into something sensible | expand

Commit Message

Jean-Noël AVILA Dec. 12, 2019, 8:46 p.m. UTC
The sentence seemed to miss a verb.

Signed-off-by: Jean-Noël Avila <jn.avila@free.fr>
---
 Documentation/diff-options.txt | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

Comments

Junio C Hamano Dec. 13, 2019, 7:52 p.m. UTC | #1
Jean-Noël Avila <jn.avila@free.fr> writes:

> The sentence seemed to miss a verb.

Yeah, that is entirely my fault.  What is worse is that the
description is full of overly long sentences.  The result of
applying this patch may be more gramatically correct than the
original, and it might be easier to read than the original, but I
think it is still too hard to understand than it should be.

Perhaps we should consider a total rewrite of the paragraph (no pun
intended).



> Signed-off-by: Jean-Noël Avila <jn.avila@free.fr>
> ---
>  Documentation/diff-options.txt | 16 ++++++++--------
>  1 file changed, 8 insertions(+), 8 deletions(-)
>
> diff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt
> index 09faee3b44..350d0a2fb0 100644
> --- a/Documentation/diff-options.txt
> +++ b/Documentation/diff-options.txt
> @@ -452,14 +452,14 @@ endif::git-format-patch[]
>  	create. This serves two purposes:
>  +
>  It affects the way a change that amounts to a total rewrite of a file
> -not as a series of deletion and insertion mixed together with a very
> -few lines that happen to match textually as the context, but as a
> -single deletion of everything old followed by a single insertion of
> -everything new, and the number `m` controls this aspect of the -B
> -option (defaults to 60%). `-B/70%` specifies that less than 30% of the
> -original should remain in the result for Git to consider it a total
> -rewrite (i.e. otherwise the resulting patch will be a series of
> -deletion and insertion mixed together with context lines).
> +does not appear as a series of deletion and insertion mixed together
> +with a very few lines that happen to match textually as the context,
> +but as a single deletion of everything old followed by a single
> +insertion of everything new, and the number `m` controls this aspect
> +of the -B option (defaults to 60%). `-B/70%` specifies that less than
> +30% of the original should remain in the result for Git to consider it
> +a total rewrite (i.e. otherwise the resulting patch will be a series
> +of deletion and insertion mixed together with context lines).
>  +
>  When used with -M, a totally-rewritten file is also considered as the
>  source of a rename (usually -M only considers a file that disappeared
Jean-Noël AVILA Jan. 29, 2020, 12:33 p.m. UTC | #2
On 12/12/2019 at 21:46, Jean-Noël Avila wrote:
> The sentence seemed to miss a verb.
> 
> Signed-off-by: Jean-Noël Avila <jn.avila@free.fr>
> ---
>  Documentation/diff-options.txt | 16 ++++++++--------
>  1 file changed, 8 insertions(+), 8 deletions(-)
> 
> diff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt
> index 09faee3b44..350d0a2fb0 100644
> --- a/Documentation/diff-options.txt
> +++ b/Documentation/diff-options.txt
> @@ -452,14 +452,14 @@ endif::git-format-patch[]
>  	create. This serves two purposes:
>  +
>  It affects the way a change that amounts to a total rewrite of a file
> -not as a series of deletion and insertion mixed together with a very
> -few lines that happen to match textually as the context, but as a
> -single deletion of everything old followed by a single insertion of
> -everything new, and the number `m` controls this aspect of the -B
> -option (defaults to 60%). `-B/70%` specifies that less than 30% of the
> -original should remain in the result for Git to consider it a total
> -rewrite (i.e. otherwise the resulting patch will be a series of
> -deletion and insertion mixed together with context lines).
> +does not appear as a series of deletion and insertion mixed together
> +with a very few lines that happen to match textually as the context,
> +but as a single deletion of everything old followed by a single
> +insertion of everything new, and the number `m` controls this aspect
> +of the -B option (defaults to 60%). `-B/70%` specifies that less than
> +30% of the original should remain in the result for Git to consider it
> +a total rewrite (i.e. otherwise the resulting patch will be a series
> +of deletion and insertion mixed together with context lines).
>  +
>  When used with -M, a totally-rewritten file is also considered as the
>  source of a rename (usually -M only considers a file that disappeared
> 

Hello,

It seems this patch was never merged, whereas the two following ones are
indeed merged. Was it refused because a complete rewrite was expected?
diff mbox series

Patch

diff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt
index 09faee3b44..350d0a2fb0 100644
--- a/Documentation/diff-options.txt
+++ b/Documentation/diff-options.txt
@@ -452,14 +452,14 @@  endif::git-format-patch[]
 	create. This serves two purposes:
 +
 It affects the way a change that amounts to a total rewrite of a file
-not as a series of deletion and insertion mixed together with a very
-few lines that happen to match textually as the context, but as a
-single deletion of everything old followed by a single insertion of
-everything new, and the number `m` controls this aspect of the -B
-option (defaults to 60%). `-B/70%` specifies that less than 30% of the
-original should remain in the result for Git to consider it a total
-rewrite (i.e. otherwise the resulting patch will be a series of
-deletion and insertion mixed together with context lines).
+does not appear as a series of deletion and insertion mixed together
+with a very few lines that happen to match textually as the context,
+but as a single deletion of everything old followed by a single
+insertion of everything new, and the number `m` controls this aspect
+of the -B option (defaults to 60%). `-B/70%` specifies that less than
+30% of the original should remain in the result for Git to consider it
+a total rewrite (i.e. otherwise the resulting patch will be a series
+of deletion and insertion mixed together with context lines).
 +
 When used with -M, a totally-rewritten file is also considered as the
 source of a rename (usually -M only considers a file that disappeared