We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cb170cd + 11f1752 commit 69bd4abCopy full SHA for 69bd4ab
frontend/src/App.js
@@ -79,16 +79,10 @@ class App extends Component {
79
SELECT f.repository_id, f.file_path,
80
LANGUAGE(f.file_path, f.blob_content) AS lang, f.blob_content,
81
UAST(f.blob_content, LANGUAGE(f.file_path, f.blob_content)) AS uast
82
-FROM files AS f
83
- JOIN commit_files cf ON
84
- f.repository_id=cf.repository_id AND
85
- f.file_path=cf.file_path AND
86
- f.blob_hash=cf.blob_hash AND
87
- f.tree_hash=cf.tree_hash
88
- JOIN refs ON
89
- cf.repository_id = refs.repository_id AND
90
- cf.commit_hash = refs.commit_hash
91
-WHERE ref_name = 'HEAD'
+FROM refs AS r
+ NATURAL JOIN commit_files
+ NATURAL JOIN files AS f
+WHERE r.ref_name = 'HEAD'
92
AND f.file_path REGEXP('.*main.go')`
93
},
94
0 commit comments