visevol / GithubVisualisation

PFE028 Été 2024
MIT License
0 stars 1 forks source link

[Backend] Implement the `#line_count` method on `SourceFile` #40

Closed zergov closed 5 days ago

zergov commented 5 days ago

Implement SourceFile#line_count

The #line_count method returns the line count of the file.

The method accepts a revision_id kwargs, which is the id of a commit you're targetting. When provided, the method will output the line count of the file at that revision.