From: Karthik Nayak Date: Tue, 2 Apr 2024 06:49:15 +0000 (+0200) Subject: githooks: use {old,new}-oid instead of {old,new}-value X-Git-Tag: v2.45.0-rc0~32^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5b1967a33c796e2103d490ee1b9179578595ef50;p=thirdparty%2Fgit.git 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 Acked-by: Patrick Steinhardt Signed-off-by: Junio C Hamano --- diff --git a/Documentation/githooks.txt b/Documentation/githooks.txt index 37f91d5b50..ee9b92c90d 100644 --- a/Documentation/githooks.txt +++ b/Documentation/githooks.txt @@ -275,12 +275,12 @@ This hook executes once for the receive operation. It takes no arguments, but for each ref to be updated it receives on standard input a line of the format: - SP SP LF + SP SP LF -where `` is the old object name stored in the ref, -`` is the new object name to be stored in the ref and +where `` is the old object name stored in the ref, +`` is the new object name to be stored in the ref and `` is the full name of the ref. -When creating a new ref, `` is the all-zeroes object name. +When creating a new ref, `` is the all-zeroes object name. If the hook exits with non-zero status, none of the refs will be updated. If the hook exits with zero, updating of individual refs can @@ -503,13 +503,13 @@ given reference transaction is in: For each reference update that was added to the transaction, the hook receives on standard input a line of the format: - SP SP LF + SP SP LF -where `` is the old object name passed into the reference -transaction, `` is the new object name to be stored in the +where `` is the old object name passed into the reference +transaction, `` is the new object name to be stored in the ref and `` is the full name of the ref. When force updating the reference regardless of its current value or when the reference is -to be created anew, `` is the all-zeroes object name. To +to be created anew, `` is the all-zeroes object name. To distinguish these cases, you can inspect the current value of `` via `git rev-parse`.