Tell GitHub that *.inc.rs files are generated

... and rename hir_type_generated.rs so it gets picked up by the
glob.

This mostly changes how GitHub renders diffs for generated files on
the web interface.

See: https://docs.github.com/en/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github
This commit is contained in:
Alan Wu 2025-03-05 11:18:29 -05:00 committed by Takashi Kokubun
parent 91114b9933
commit 9e31d29e0e
Notes: git 2025-04-18 13:48:26 +00:00
4 changed files with 3 additions and 3 deletions

1
.gitattributes vendored
View File

@ -1,5 +1,6 @@
*.gemspec diff=ruby
*.rb diff=ruby
*.inc.rs linguist-generated=true
bin svn-properties=svn:ignore=ruby
bin/* diff=ruby
tool/update-deps diff=ruby

View File

@ -1,4 +1,4 @@
# Generate src/hir_type_generated.rs. To do this, we build up a DAG that
# Generate hir_type.inc.rs. To do this, we build up a DAG that
# represents a slice of the Ruby type hierarchy that we care about optimizing.
# This also includes primitive values such as C booleans, int32, and so on.

View File

@ -60,8 +60,7 @@ pub struct Type {
spec: Specialization
}
// TODO(max): Figure out how to silence the non-upper-case globals warning
include!("hir_type_generated.rs");
include!("hir_type.inc.rs");
/// Get class name from a class pointer.
fn get_class_name(class: Option<VALUE>) -> String {