Home Explore Blog CI



git

2nd chunk of `Documentation/git-index-pack.adoc`
df85a3594350b1787e17a361be7cb736111c48de2cb3940f000000010000081d
 process from deleting
	the newly constructed pack and index before refs can be
	updated to use objects contained in the pack.

--keep=<msg>::
	Like --keep, create a .keep file before moving the index into
	its final destination.  However, instead of creating an empty file
	place '<msg>' followed by an LF into the .keep file.  The '<msg>'
	message can later be searched for within all .keep files to
	locate any which have outlived their usefulness.

--index-version=<version>[,<offset>]::
	This is intended to be used by the test suite only. It allows
	to force the version for the generated pack index, and to force
	64-bit index entries on objects located above the given offset.

--strict[=<msg-id>=<severity>...]::
	Die, if the pack contains broken objects or links. An optional
	comma-separated list of `<msg-id>=<severity>` can be passed to change
	the severity of some possible issues, e.g.,
	 `--strict="missingEmail=ignore,badTagName=error"`. See the entry for the
	`fsck.<msg-id>` configuration options in linkgit:git-fsck[1] for more
	information on the possible values of `<msg-id>` and `<severity>`.

--progress-title::
	For internal use only.
+
Set the title of the progress bar. The title is "Receiving objects" by
default and "Indexing objects" when `--stdin` is specified.

--check-self-contained-and-connected::
	Die if the pack contains broken links. For internal use only.

--fsck-objects[=<msg-id>=<severity>...]::
	Die if the pack contains broken objects, but unlike `--strict`, don't
	choke on broken links. If the pack contains a tree pointing to a
	.gitmodules blob that does not exist, prints the hash of that blob
	(for the caller to check) after the hash that goes into the name of the
	pack/idx file (see "Notes").
+
An optional comma-separated list of `<msg-id>=<severity>` can be passed to
change the severity of some possible issues, e.g.,
`--fsck-objects="missingEmail=ignore,badTagName=ignore"`. See the entry for the
`fsck.<msg-id>` configuration options in linkgit:git-fsck[1] for more
information on the possible values of `<msg-id>` and

Title: Git Index-Pack Command Options
Summary
The git-index-pack command has various options to control its behavior, including preventing pack deletion, specifying index versions, and checking for broken objects and links, with some options intended for internal use or testing purposes.