Skip to content

Commit d5fa1f1

Browse files
tacker66gitster
authored andcommitted
The name of the hash function is "SHA-1", not "SHA1"
Use "SHA-1" instead of "SHA1" whenever we talk about the hash function. When used as a programming symbol, we keep "SHA1". Signed-off-by: Thomas Ackermann <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3ab5012 commit d5fa1f1

31 files changed

+68
-68
lines changed

Documentation/config.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ repository's usual working tree).
412412
core.logAllRefUpdates::
413413
Enable the reflog. Updates to a ref <ref> is logged to the file
414414
"$GIT_DIR/logs/<ref>", by appending the new and old
415-
SHA1, the date/time and the reason of the update, but
415+
SHA-1, the date/time and the reason of the update, but
416416
only when the file exists. If this configuration
417417
variable is set to true, missing "$GIT_DIR/logs/<ref>"
418418
file is automatically created for branch heads (i.e. under

Documentation/git-cat-file.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ object type, or '-s' is used to find the object size, or '--textconv' is used
2020
(which implies type "blob").
2121

2222
In the second form, a list of objects (separated by linefeeds) is provided on
23-
stdin, and the SHA1, type, and size of each object is printed on stdout.
23+
stdin, and the SHA-1, type, and size of each object is printed on stdout.
2424

2525
OPTIONS
2626
-------
@@ -58,11 +58,11 @@ OPTIONS
5858
to apply the filter to the content recorded in the index at <path>.
5959

6060
--batch::
61-
Print the SHA1, type, size, and contents of each object provided on
61+
Print the SHA-1, type, size, and contents of each object provided on
6262
stdin. May not be combined with any other options or arguments.
6363

6464
--batch-check::
65-
Print the SHA1, type, and size of each object provided on stdin. May not
65+
Print the SHA-1, type, and size of each object provided on stdin. May not
6666
be combined with any other options or arguments.
6767

6868
OUTPUT

Documentation/git-describe.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ is found, its name will be output and searching will stop.
149149
If an exact match was not found, 'git describe' will walk back
150150
through the commit history to locate an ancestor commit which
151151
has been tagged. The ancestor's tag will be output along with an
152-
abbreviation of the input committish's SHA1.
152+
abbreviation of the input committish's SHA-1.
153153

154154
If multiple tags were found during the walk then the tag which
155155
has the fewest commits different from the input committish will be

Documentation/git-fsck.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ OPTIONS
2323
An object to treat as the head of an unreachability trace.
2424
+
2525
If no objects are given, 'git fsck' defaults to using the
26-
index file, all SHA1 references in `refs` namespace, and all reflogs
26+
index file, all SHA-1 references in `refs` namespace, and all reflogs
2727
(unless --no-reflogs is given) as heads.
2828

2929
--unreachable::
@@ -89,7 +89,7 @@ index file, all SHA1 references in `refs` namespace, and all reflogs
8989
DISCUSSION
9090
----------
9191

92-
git-fsck tests SHA1 and general object sanity, and it does full tracking
92+
git-fsck tests SHA-1 and general object sanity, and it does full tracking
9393
of the resulting reachability and everything else. It prints out any
9494
corruption it finds (missing or bad objects), and if you use the
9595
'--unreachable' flag it will also print out objects that exist but that

Documentation/git-index-pack.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Note
8989
----
9090

9191
Once the index has been created, the list of object names is sorted
92-
and the SHA1 hash of that list is printed to stdout. If --stdin was
92+
and the SHA-1 hash of that list is printed to stdout. If --stdin was
9393
also used then this is prefixed by either "pack\t", or "keep\t" if a
9494
new .keep file was successfully created. This is useful to remove a
9595
.keep file used as a lock to prevent the race with 'git repack'

Documentation/git-ls-files.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ which case it outputs:
164164
'git ls-files --unmerged' and 'git ls-files --stage' can be used to examine
165165
detailed information on unmerged paths.
166166

167-
For an unmerged path, instead of recording a single mode/SHA1 pair,
167+
For an unmerged path, instead of recording a single mode/SHA-1 pair,
168168
the index records up to three such pairs; one from tree O in stage
169169
1, A in stage 2, and B in stage 3. This information can be used by
170170
the user (or the porcelain) to see what should eventually be recorded at the

Documentation/git-merge-index.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ SYNOPSIS
1414
DESCRIPTION
1515
-----------
1616
This looks up the <file>(s) in the index and, if there are any merge
17-
entries, passes the SHA1 hash for those files as arguments 1, 2, 3 (empty
17+
entries, passes the SHA-1 hash for those files as arguments 1, 2, 3 (empty
1818
argument if no file), and <file> as argument 4. File modes for the three
1919
files are passed as arguments 5, 6 and 7.
2020

Documentation/git-pack-objects.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ base-name::
5050
Write into a pair of files (.pack and .idx), using
5151
<base-name> to determine the name of the created file.
5252
When this option is used, the two files are written in
53-
<base-name>-<SHA1>.{pack,idx} files. <SHA1> is a hash
53+
<base-name>-<SHA-1>.{pack,idx} files. <SHA-1> is a hash
5454
of the sorted object names to make the resulting filename
5555
based on the pack content, and written to the standard
5656
output of the command.

Documentation/git-patch-id.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ SYNOPSIS
1212

1313
DESCRIPTION
1414
-----------
15-
A "patch ID" is nothing but a SHA1 of the diff associated with a patch, with
15+
A "patch ID" is nothing but a SHA-1 of the diff associated with a patch, with
1616
whitespace and line numbers ignored. As such, it's "reasonably stable", but at
1717
the same time also reasonably unique, i.e., two patches that have the same "patch
1818
ID" are almost guaranteed to be the same thing.

Documentation/git-replace.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ DESCRIPTION
1616
-----------
1717
Adds a 'replace' reference in `refs/replace/` namespace.
1818

19-
The name of the 'replace' reference is the SHA1 of the object that is
20-
replaced. The content of the 'replace' reference is the SHA1 of the
19+
The name of the 'replace' reference is the SHA-1 of the object that is
20+
replaced. The content of the 'replace' reference is the SHA-1 of the
2121
replacement object.
2222

2323
Unless `-f` is given, the 'replace' reference must not yet exist.

0 commit comments

Comments
 (0)