Daniel Koning <d...@danielkoning.com> writes:

> The git-blame(1) man page says that the .. range specifier can be used
> to exclude changes "older than" a certain revision.

Thanks for spoting a loose-and-colloquial use of "older than" in the
doc.  As you suspect, the document wanted the phrase to be understood
as "reachable from" (a.k.a "ancestor of").  

Before reading your proposed updated text, I feared that an attempt
to be techinically more precise by rewriting description that uses
more colloquial "older than" may make the result cumbersome to read,
and as I suspected the result did become so, but it does not look
too bad, either, but the explanation of how boundary commits are
shown is completely lost, which is not quite satisfactory.

I personally find "unlike ... does not perform date-based cutoff" a
bit too redundant---as you know, it is known that everywhere in Git,
dots notation is about limiting by revision range a.k.a ancestry
relationships, and the reader can interpret "older than" as
"reachable from", once the context is clear enough.  If anything,
perhaps such a description should go to "git help revisions", as it
is not just "blame" but "log". "The dots notation is not about
date-based cutoff, unlike the --since/--until options" is shared by
all history traversal tools.

>  which limits the annotation to the body of the `hello` subroutine.
> -When you are not interested in changes older than version
> -v2.6.18, or changes older than 3 weeks, you can use revision
> -range specifiers  similar to 'git rev-list':
> -
> -     git blame v2.6.18.. -- foo
> -     git blame --since=3.weeks -- foo
> -
> -When revision range specifiers are used to limit the annotation,
> -lines that have not changed since the range boundary (either the
> -commit v2.6.18 or the most recent commit that is more than 3
> -weeks old in the above example) are blamed for that range
> -boundary commit.
> +When you are only interested in recent changes, you can use revision
> +range specifiers and limiting options, just as with 'git rev-list'.
> +
> +You can limit the annotation to commits from the past 3 weeks:
> +
> +  git blame --since=3.weeks -- foo
> +
> +The oldest commit in that span of time will be given the blame for any
> +lines that have not changed since.
> +
> +Or you can limit the annotation to commits that are not ancestors of
> +v2.6.18:
> +
> +  git blame v2.6.18.. -- foo
> +
> +Unlike the --since option, the two-dot range specifier does not perform
> +a date-based cutoff. If changes from branch `fix` were merged in after
> +v2.6.18, the commits on `fix` which introduced those changes will appear
> +in the output of 'git blame', even if those commits took place at an
> +earlier time than v2.6.18.
>  A particularly useful way is to see if an added file has lines
>  created by copy-and-paste from existing files.  Sometimes this
> --
> 2.20.1

Reply via email to