@@ -240,7 +240,7 @@ static void loose_fill_ref_dir(struct ref_store *ref_store,
240240 } else if (is_null_oid (& oid )) {
241241 /*
242242 * It is so astronomically unlikely
243- * that NULL_SHA1 is the SHA-1 of an
243+ * that null_oid is the OID of an
244244 * actual object that we consider its
245245 * appearance in a loose reference
246246 * file to be repo corruption
@@ -473,7 +473,7 @@ static void unlock_ref(struct ref_lock *lock)
473473 * are passed to refs_verify_refname_available() for this check.
474474 *
475475 * If mustexist is not set and the reference is not found or is
476- * broken, lock the reference anyway but clear sha1 .
476+ * broken, lock the reference anyway but clear old_oid .
477477 *
478478 * Return 0 on success. On failure, write an error message to err and
479479 * return TRANSACTION_NAME_CONFLICT or TRANSACTION_GENERIC_ERROR.
@@ -1648,9 +1648,8 @@ static int files_log_ref_write(struct files_ref_store *refs,
16481648}
16491649
16501650/*
1651- * Write sha1 into the open lockfile, then close the lockfile. On
1652- * errors, rollback the lockfile, fill in *err and
1653- * return -1.
1651+ * Write oid into the open lockfile, then close the lockfile. On
1652+ * errors, rollback the lockfile, fill in *err and return -1.
16541653 */
16551654static int write_ref_to_lockfile (struct ref_lock * lock ,
16561655 const struct object_id * oid , struct strbuf * err )
@@ -2272,7 +2271,7 @@ static int split_symref_update(struct files_ref_store *refs,
22722271
22732272 /*
22742273 * Change the symbolic ref update to log only. Also, it
2275- * doesn't need to check its old SHA-1 value, as that will be
2274+ * doesn't need to check its old OID value, as that will be
22762275 * done when new_update is processed.
22772276 */
22782277 update -> flags |= REF_LOG_ONLY | REF_NO_DEREF ;
@@ -2341,7 +2340,7 @@ static int check_old_oid(struct ref_update *update, struct object_id *oid,
23412340 * Prepare for carrying out update:
23422341 * - Lock the reference referred to by update.
23432342 * - Read the reference under lock.
2344- * - Check that its old SHA-1 value (if specified) is correct, and in
2343+ * - Check that its old OID value (if specified) is correct, and in
23452344 * any case record it in update->lock->old_oid for later use when
23462345 * writing the reflog.
23472346 * - If it is a symref update without REF_NO_DEREF, split it up into a
@@ -2396,7 +2395,7 @@ static int lock_ref_for_update(struct files_ref_store *refs,
23962395 /*
23972396 * We won't be reading the referent as part of
23982397 * the transaction, so we have to read it here
2399- * to record and possibly check old_sha1 :
2398+ * to record and possibly check old_oid :
24002399 */
24012400 if (refs_read_ref_full (& refs -> base ,
24022401 referent .buf , 0 ,
@@ -2416,7 +2415,7 @@ static int lock_ref_for_update(struct files_ref_store *refs,
24162415 /*
24172416 * Create a new update for the reference this
24182417 * symref is pointing at. Also, we will record
2419- * and verify old_sha1 for this update as part
2418+ * and verify old_oid for this update as part
24202419 * of processing the split-off update, so we
24212420 * don't have to do it here.
24222421 */
@@ -2436,7 +2435,7 @@ static int lock_ref_for_update(struct files_ref_store *refs,
24362435
24372436 /*
24382437 * If this update is happening indirectly because of a
2439- * symref update, record the old SHA-1 in the parent
2438+ * symref update, record the old OID in the parent
24402439 * update:
24412440 */
24422441 for (parent_update = update -> parent_update ;
0 commit comments