Re: [PATCH v4 0/8] add more ref consistency checks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



shejialuo <shejialuo@xxxxxxxxx> writes:

> Hi All:
>
> This patch enhances the following things:
>
> 1. [PATCH v4 4/8]: update the tests to verify that we don't report any
>    errors to the user in some cases. Also, suggested by Junio, make sure
>    that we check whether there is a trailing space after "# packed-refs
>    with:".
> 2. [PATCH v4 6/8]: instead of greedily calculating the name of the line,
>    lazily compute when there is any errors. And use the HERE docs to
>    improve the test script.
> 3. [PATCH v4 7/8]: instead of storing the states, we parse the file
>    again to check whether the file is sorted to avoid allocating too
>    much memory. And use the HERE docs to improve the test script.
> 4. [PATCH v4 8/8]: update the documentation to emphasis the default. And
>    add tests to exercise the code.
>

Nit: For someone coming in to review the 4th version directly it would
be really nice to see:

1. Summary of what the patch series is about.
2. Changes built over the last versions.

I know all this information is already spread out over the previous
versions, but would be nice to have it here (in every version rather).

> shejialuo (8):
>   t0602: use subshell to ensure working directory unchanged
>   builtin/refs: get worktrees without reading head information
>   packed-backend: check whether the "packed-refs" is regular file
>   packed-backend: add "packed-refs" header consistency check
>   packed-backend: check whether the refname contains NUL characters
>   packed-backend: add "packed-refs" entry consistency check
>   packed-backend: check whether the "packed-refs" is sorted
>   builtin/fsck: add `git refs verify` child process
>
>  Documentation/fsck-msgids.txt |   14 +
>  Documentation/git-fsck.txt    |    7 +-
>  builtin/fsck.c                |   33 +-
>  builtin/refs.c                |    2 +-
>  fsck.h                        |    4 +
>  refs/packed-backend.c         |  349 +++++++++-
>  t/t0602-reffiles-fsck.sh      | 1205 ++++++++++++++++++++-------------
>  worktree.c                    |    5 +
>  worktree.h                    |    6 +
>  9 files changed, 1140 insertions(+), 485 deletions(-)

[snip]

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux