Repository navigation
Fix negotiation buffer reservation for take_buffered_into - #218
Merged
Merged
Conversation
oferchen
added a commit
that referenced
this pull request
Jul 17, 2026
#217 CVS `.cvsignore`/$CVSIGNORE `!` handling: mirror upstream parse_rule_tok (exclude.c:1122-1124, 1315-1323). In a NO_PREFIXES CVS list a leading `!` tentatively sets FILTRULE_CLEAR_LIST, but len>1 clears it, so `!foo` is a LITERAL exclude of a file named `!foo` (not a removal of a prior `foo` exclude). A bare `!` (len==1) keeps CLEAR_LIST and pop_filter_list (exclude.c:1399) wipes the WHOLE shared cvs list, including the built-in defaults. Drop the invented remove-pattern path and parse ~/.cvsignore and $CVSIGNORE into the shared accumulator. #218 --from0/eol_nulls for filter files: honor `--from0`/`-0` when reading `--exclude-from`/`--include-from` files so records split on NUL, mirroring parse_filter_file (exclude.c:1501). Embedded newlines become literal pattern bytes. Deferred (fix site outside crates/cli, occupied by other in-flight PRs): #219 CVS :C/-C wire placement and proto>=29 gate live in the wire send/recv path (core build_wire_format_rules). #222 delete-excluded no-prefixes dir-merge elision lives in core apply_implicit_sender_side_for_delete_excluded / build_wire_format_rules.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
#217 CVS `.cvsignore`/$CVSIGNORE `!` handling: mirror upstream parse_rule_tok (exclude.c:1122-1124, 1315-1323). In a NO_PREFIXES CVS list a leading `!` tentatively sets FILTRULE_CLEAR_LIST, but len>1 clears it, so `!foo` is a LITERAL exclude of a file named `!foo` (not a removal of a prior `foo` exclude). A bare `!` (len==1) keeps CLEAR_LIST and pop_filter_list (exclude.c:1399) wipes the WHOLE shared cvs list, including the built-in defaults. Drop the invented remove-pattern path and parse ~/.cvsignore and $CVSIGNORE into the shared accumulator. #218 --from0/eol_nulls for filter files: honor `--from0`/`-0` when reading `--exclude-from`/`--include-from` files so records split on NUL, mirroring parse_filter_file (exclude.c:1501). Embedded newlines become literal pattern bytes. Deferred (fix site outside crates/cli, occupied by other in-flight PRs): #219 CVS :C/-C wire placement and proto>=29 gate live in the wire send/recv path (core build_wire_format_rules). #222 delete-excluded no-prefixes dir-merge elision lives in core apply_implicit_sender_side_for_delete_excluded / build_wire_format_rules.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
NegotiationPrologueSniffer::take_buffered_intoso it reserves based on the destination vector's length and avoids triggering a second allocation on extendTesting