-
Notifications
You must be signed in to change notification settings - Fork 95
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
Use flags-as-proto
to determine command line schema
#8057
Open
tempoz
wants to merge
20
commits into
master
Choose a base branch
from
cli-use-proto-flags
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
258550a
wip
tempoz a02601d
use flags-as-proto to determine command line schema
tempoz 7516b9f
remove white space
tempoz 7171892
buildfix
tempoz 5a86862
cleanup
tempoz 79d4aa1
pre-tidy
tempoz b84b01c
fixed the bzlmod side
tempoz d932c34
they match
tempoz dcd370e
buildfix
tempoz 0eeb238
map_kind is more accurate
tempoz aed70c8
split out protos
tempoz b6c2565
buildfix
tempoz 1fbd265
fixed resolution
tempoz c986776
fixed patch
tempoz 1b65b27
fixed the regex
tempoz 9e36ffe
copy the proto
tempoz 481ae1e
tear out the rest of it
tempoz 63fdbc9
Remove unused code
tempoz 50a7d8b
Add tests, fix `bazelrc` flag
tempoz ada1a2f
buildfix
tempoz 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
* text=auto | ||
|
||
*.b64 binary | ||
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
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.
The b64 file is a text-format (ASCII) representation of binary content, so I think this change should be reverted
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.
This setting tells git not to do cleanup of new lines on the file (adding a terminating new line, doing CRLF conversion) or to try to display diffs of it as if it is a normal file (which it can't do effectively, as it's all on one line anyway).
See the Identifying Binary Files section of https://git-scm.com/book/ms/v2/Customizing-Git-Git-Attributes , which states:
and then goes on to describe an example of a text file that is not mergeable and where diffs aren't "generally helpful", advising that in these cases the files in question should be labeled
binary
in.gitattributes
It later describes how to get
git
to display diffs of "binary" files that have been converted to human-readable text files, which we could do, but that requires agit config
setting, which would have to be set for every user who clones the repo, so it's not really practical.