Skip to content
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

Add diff.py to diff individual sections of the source file #9700

Closed
wants to merge 1 commit into from

Conversation

not-my-profile
Copy link
Contributor

Resolves #9694.

@domenic
Copy link
Member

domenic commented Sep 8, 2023

I don't think we have anyone willing to maintain this, so it's best kept in the repository of someone who would, such as yourself.

@domenic domenic closed this Sep 8, 2023
@not-my-profile
Copy link
Contributor Author

Thanks that makes sense. I'll do that. Would you accept a PR that adds a link to my script to the README? (I guess the "Blame" section could be broadened to "Git tooling").

On a related note do you know if this specific format that's used by the source file in this repository is also used by other specifications? i.e. could my script be of use for other specs as well?

@not-my-profile not-my-profile deleted the diff.py branch September 23, 2023 02:54
@domenic
Copy link
Member

domenic commented Sep 24, 2023

Thanks that makes sense. I'll do that. Would you accept a PR that adds a link to my script to the README? (I guess the "Blame" section could be broadened to "Git tooling").

For sure!

On a related note do you know if this specific format that's used by the source file in this repository is also used by other specifications? i.e. could my script be of use for other specs as well?

Not really, but, maybe for the purposes of your script.

In particular, Wattsi is only used by whatwg/html.

However, the general format of "many sections separated by <hN> elements" is used by a lot of specs.

Some specs use Markdown-like shorthands, as part of the Bikeshed language that they are written in. But most (all?) WHATWG specs use raw <hN> elements instead. For example, https://github.com/whatwg/streams/blob/main/index.bs or https://github.com/whatwg/url/blob/main/url.bs .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Enable git diff for individual sections of the source file
2 participants