githooks: use {old,new}-oid instead of {old,new}-value
Similar to the previous commit, rename {old,new}-value in the 'githooks' documentation to {old,new}-oid. This improves clarity and also ensures consistency within the document. Signed-off-by: Karthik Nayak <karthik.188@gmail.com> Acked-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Karthik Nayak committed
Apr 2, 2024 at 08:49 UTC
5b1967a33c796e2103d490ee1b9179578595ef50
1 file changed
+8
-8
Documentation/githooks.txt
+8
-8
@@ -275,12 +275,12 @@ This hook executes once for the receive operation. It takes no
275
arguments, but for each ref to be updated it receives on standard
276
input a line of the format:
277
278
- <old-value> SP <new-value> SP <ref-name> LF
278
+ <old-oid> SP <new-oid> SP <ref-name> LF
279
280
-where `<old-value>` is the old object name stored in the ref,
281
-`<new-value>` is the new object name to be stored in the ref and
280
+where `<old-oid>` is the old object name stored in the ref,
281
+`<new-oid>` is the new object name to be stored in the ref and
282
`<ref-name>` is the full name of the ref.
283
-When creating a new ref, `<old-value>` is the all-zeroes object name.
283
+When creating a new ref, `<old-oid>` is the all-zeroes object name.
284
285
If the hook exits with non-zero status, none of the refs will be
286
updated. If the hook exits with zero, updating of individual refs can
@@ -503,13 +503,13 @@ given reference transaction is in:
503
For each reference update that was added to the transaction, the hook
504
receives on standard input a line of the format:
505
506
- <old-value> SP <new-value> SP <ref-name> LF
506
+ <old-oid> SP <new-oid> SP <ref-name> LF
507
508
-where `<old-value>` is the old object name passed into the reference
509
-transaction, `<new-value>` is the new object name to be stored in the
508
+where `<old-oid>` is the old object name passed into the reference
509
+transaction, `<new-oid>` is the new object name to be stored in the
510
ref and `<ref-name>` is the full name of the ref. When force updating
511
the reference regardless of its current value or when the reference is
512
-to be created anew, `<old-value>` is the all-zeroes object name. To
512
+to be created anew, `<old-oid>` is the all-zeroes object name. To
513
distinguish these cases, you can inspect the current value of
514
`<ref-name>` via `git rev-parse`.
515