-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feat] - tmp file diffs #2306
Merged
Merged
[feat] - tmp file diffs #2306
Changes from 4 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
f2f13b2
Write large diffs to tmp files
ahrav 7d2452a
address comments
ahrav 0802a62
Move bufferedfilewriter to own pkg
ahrav 0365023
update test
ahrav 57e5d6a
swallow write err
ahrav dad92c5
Merge branch 'main' into feat-tmp-file-diffs
ahrav fd41709
use buffer pool
ahrav da2ff88
use size vs len
ahrav b3260ff
Merge branch 'main' into feat-tmp-file-diffs
ahrav 73903e7
use interface
ahrav 994c268
fix test
ahrav f8e87e9
update comments
ahrav bba85f4
fix test
ahrav 2e7479e
remove unused
ahrav 8cc4246
remove
ahrav f114a4a
remove unused
ahrav bf25bd2
Merge branch 'feat-tmp-file-diffs' of github.com:trufflesecurity/truf…
ahrav 390a5a5
move parser and commit struct closer to where they are used
ahrav bb82471
linter change
ahrav 9af37d8
merge main
ahrav bab3f04
add more kvp pairs to error
ahrav f26ac45
fix test
ahrav cbd4ddf
update
ahrav 7aef649
address comments
ahrav 47544ad
remove bufferedfile writer
ahrav 3c7a1d5
Merge branch 'main' into feat-tmp-file-diffs
ahrav a9ee71a
Merge branch 'main' into feat-tmp-file-diffs
ahrav 419107e
address comments
ahrav 1bd8b27
adjust interface
ahrav c259b84
Merge branch 'main' into feat-tmp-file-diffs
ahrav 1485c9a
fix finalize
ahrav 73a766f
address comments
ahrav 1699097
lint
ahrav 3ac95f5
remove guard
ahrav e442142
Merge branch 'main' into feat-tmp-file-diffs
ahrav bff34a4
fix
ahrav fd5181e
Merge branch 'feat-tmp-file-diffs' of github.com:trufflesecurity/truf…
ahrav 1c577db
add TODO
ahrav File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These methods probably can be removed, but I was trying to avoid reaching into the contentWriter directly. This is also exported since we need access to this in the git source. Open to changing it if we feel these are providing any additional encapsulation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want to guard them behind the state like
ReadCloser()
? I find it a bit surprising that some of the read methods are guarded and some aren't.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like that idea. Will guard them.