Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Error when describing the Smart Protocol?#1413

Merged
ben merged 4 commits intoprogit:masterprogit/progit2:masterfrom
mildsunrise:patch-1mildsunrise/progit2:patch-1Copy head branch name to clipboard
Apr 8, 2020
Merged

Error when describing the Smart Protocol?#1413
ben merged 4 commits intoprogit:masterprogit/progit2:masterfrom
mildsunrise:patch-1mildsunrise/progit2:patch-1Copy head branch name to clipboard

Conversation

@mildsunrise
Copy link
Contributor

@mildsunrise mildsunrise commented Apr 7, 2020

It currently says (emphasis mine):

Each line starts with a 4-character hex value specifying how long the rest of the line is.
Your first line starts with 00a5, which is hexadecimal for 165, meaning that 165 bytes remain on that line.

This is inconsistent with the examples; the length seems to include its own 4 characters, and the linefeed:

line = '003fe2409a098dc3e53539a9028a94b6224db9d6a6b6 refs/heads/master\n'
line.length === 0x3f

@mildsunrise
Copy link
Contributor Author

Also modified the text to say 'chunk' rather than 'line'. This is more accurate, as a chunk can have multiple lines of data, and may not have a trailing linefeed.

Copy link
Member

@ben ben left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heyyy this is a much better way of putting that, thanks! Just one formatting change to make.

book/10-git-internals/sections/transfer-protocols.asc Outdated Show resolved Hide resolved
@mildsunrise
Copy link
Contributor Author

Resolved, thanks for pointing out!

@ben
Copy link
Member

ben commented Apr 8, 2020

✨ thanks!

@ben ben merged commit 8148dc6 into progit:master Apr 8, 2020
@mildsunrise mildsunrise deleted the patch-1 branch April 8, 2020 03:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.