diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2015-06-22 17:27:18 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-06-23 14:27:37 -0700 |
commit | cd94c6f91ee92ffb0592696170fa84f426b839ab (patch) | |
tree | 1e437d580bb4b5087d248d69149350ebf14ed94b /fsck.h | |
parent | 02976bf856bc47ea2bcb9423cd13b6f69ce58929 (diff) | |
download | git-cd94c6f91ee92ffb0592696170fa84f426b839ab.tar.gz |
fsck: git receive-pack: support excluding objects from fsck'ing
The optional new config option `receive.fsck.skipList` specifies the path
to a file listing the names, i.e. SHA-1s, one per line, of objects that
are to be ignored by `git receive-pack` when `receive.fsckObjects = true`.
This is extremely handy in case of legacy repositories where it would
cause more pain to change incorrect objects than to live with them
(e.g. a duplicate 'author' line in an early commit object).
The intended use case is for server administrators to inspect objects
that are reported by `git push` as being too problematic to enter the
repository, and to add the objects' SHA-1 to a (preferably sorted) file
when the objects are legitimate, i.e. when it is determined that those
problematic objects should be allowed to enter the server.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'fsck.h')
-rw-r--r-- | fsck.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -32,6 +32,7 @@ struct fsck_options { fsck_error error_func; unsigned strict:1; int *msg_type; + struct sha1_array *skiplist; }; #define FSCK_OPTIONS_DEFAULT { NULL, fsck_error_function, 0, NULL } |