Skip to content

Commit 40a4f5a

Browse files
peffgitster
authored andcommitted
pack-objects doc: treat output filename as opaque
After 1190a1a (pack-objects: name pack files after trailer hash, 2013-12-05), the SHA-1 used to determine the filename is calculated differently. Update the documentation to not guarantee anything more than that the SHA-1 depends on the pack content somehow. Hopefully this will discourage readers from depending on the old or the new calculation. Reported-by: Michael Haggerty <[email protected]> Signed-off-by: Jeff King <[email protected]> Signed-off-by: Jonathan Nieder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1190a1a commit 40a4f5a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Documentation/git-pack-objects.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ base-name::
5151
<base-name> to determine the name of the created file.
5252
When this option is used, the two files are written in
5353
<base-name>-<SHA-1>.{pack,idx} files. <SHA-1> is a hash
54-
of the sorted object names to make the resulting filename
55-
based on the pack content, and written to the standard
54+
based on the pack content and is written to the standard
5655
output of the command.
5756

5857
--stdout::

0 commit comments

Comments
 (0)