summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-01-10 18:33:11 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-01-10 18:33:11 (GMT)
commitb2132068c6df38b24b49dfc6fbbf0645b21ec037 (patch)
tree56fc704257887e0788cc73e654393605da8171c2 /Documentation
parentf06a5e607dde266884db4a99b70fbee09d5c5efc (diff)
parent65ea9c3c3d0e74b1f8c0c1d9fea6988550133dba (diff)
downloadgit-b2132068c6df38b24b49dfc6fbbf0645b21ec037.zip
git-b2132068c6df38b24b49dfc6fbbf0645b21ec037.tar.gz
git-b2132068c6df38b24b49dfc6fbbf0645b21ec037.tar.bz2
Merge branch 'jk/oi-delta-base'
Teach "cat-file --batch" to show delta-base object name for a packed object that is represented as a delta. * jk/oi-delta-base: cat-file: provide %(deltabase) batch format sha1_object_info_extended: provide delta base sha1s
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-cat-file.txt12
1 files changed, 9 insertions, 3 deletions
diff --git a/Documentation/git-cat-file.txt b/Documentation/git-cat-file.txt
index 322f5ed..f6a16f4 100644
--- a/Documentation/git-cat-file.txt
+++ b/Documentation/git-cat-file.txt
@@ -109,6 +109,11 @@ newline. The available atoms are:
The size, in bytes, that the object takes up on disk. See the
note about on-disk sizes in the `CAVEATS` section below.
+`deltabase`::
+ If the object is stored as a delta on-disk, this expands to the
+ 40-hex sha1 of the delta base object. Otherwise, expands to the
+ null sha1 (40 zeroes). See `CAVEATS` below.
+
`rest`::
If this atom is used in the output string, input lines are split
at the first whitespace boundary. All characters before that
@@ -152,10 +157,11 @@ should be taken in drawing conclusions about which refs or objects are
responsible for disk usage. The size of a packed non-delta object may be
much larger than the size of objects which delta against it, but the
choice of which object is the base and which is the delta is arbitrary
-and is subject to change during a repack. Note also that multiple copies
-of an object may be present in the object database; in this case, it is
-undefined which copy's size will be reported.
+and is subject to change during a repack.
+Note also that multiple copies of an object may be present in the object
+database; in this case, it is undefined which copy's size or delta base
+will be reported.
GIT
---