Skip to content

Commit 569179f

Browse files
committed
Update 4th code listing explanation
The program prints the results if the protocol, host, and username match. Signed-off-by: Bagas Sanjaya <[email protected]>
1 parent 676945d commit 569179f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/07-git-tools/sections/credentials.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ include::../git-credential-read-only[]
174174
<3> This loop reads from stdin until the first blank line is reached.
175175
The inputs are stored in the `known` hash for later reference.
176176
<4> This loop reads the contents of the storage file, looking for matches.
177-
If the protocol and host from `known` match this line, the program prints the results to stdout and exits.
177+
If the protocol, host, and username from `known` match this line, the program prints the results to stdout and exits.
178178

179179
We'll save our helper as `git-credential-read-only`, put it somewhere in our `PATH` and mark it executable.
180180
Here's what an interactive session looks like:

0 commit comments

Comments
 (0)