Show 52 quoted lines
> By default, git-fast-import(1) prints a bunch of statistics about all
> kinds of internal details of Git. This includes for example how many
> objects have been allocated, the number of refs processed, or the amount
> of memory that was allocated.
>
> Reporting this kind information is highly questionable, doubly so as it
> is done by default, as a user really shoudln't have to worry about such
> internal implementation details. For some of the above metrics it could
> be argued though that it's indeed interesting to learn about the number
> of objects processed to get a rough sense of what git-fast-import(1) has
> done. But for other kind of information that's not the case, as it is
> without a doubt purely internal implementation details.
>
> One of these reported implementation details is our packfile statistics.
> These include information on the system's page size, the number of packs
> that were opened, the number of calls to mmap(3) and how many pack
> windows were created. Reporting that kind of information, and that even
> by default, is just completely uncalled for. This information may be
> useful to a developer, but a user really shouldn't have to care about
> any of this.
>
> More importantly though, with pluggable object databases we shouldn't
> assume that we're using packfiles in the first place anymore. The
> current implementation of git-fast-import(1) still does, but we will
> convert it to use transactions sooner rather than later.
>
> Let's just unceremoniously drop reporting packfile information to the
> user. If anyone complains (which I highly doubt), then we may consider
> reintroducing this as trace2 data. The same is arguably true for many of
> the other reported statistics. But for now I care about the packfile
> subsystem, only, and hence those are left as-is.
>
> Signed-off-by: Patrick Steinhardt <ps@pks.im>
> ---
> Documentation/git-fast-import.adoc | 5 ++---
> builtin/fast-import.c | 4 +---
> packfile.c | 36 ------------------------------------
> packfile.h | 2 --
> 4 files changed, 3 insertions(+), 44 deletions(-)
>
> diff --git a/Documentation/git-fast-import.adoc b/Documentation/git-fast-import.adoc
> index 5201e493345..6afe14b650c 100644
> --- a/Documentation/git-fast-import.adoc
> +++ b/Documentation/git-fast-import.adoc
> @@ -48,9 +48,8 @@ OPTIONS
>
> --stats::
> Display some basic statistics about the objects fast-import has
> - created, the packfiles they were stored into, and the
> - memory used by fast-import during this run. Showing this output
> - is currently the default, but can be disabled with --quiet.
> + created, and the memory used by fast-import during this run. Showing