In the below example, you can see how to get the list of commits by using the commit_sha method in the end. You can also use the repo.head method to get the first commit in a repository.

Code !DOCTYPE html> html> head> title>Rdiff Web/title> /head> body> h1>Rdiff Web/h1> p>At the moment this isn’t very useful.../p> p>But in a minute you’ll see how to get the list of commits by using the commit_sha method in the end. /p> p>You can also use the repo.head method to get the first commit in a repository. /p> hr> h3>Repository/h3> p>You can view the full documentation on the Repository class on the a href="https://github.com/ikus060/rdiffweb">ikus060/rdiffweb wiki/a>. hr> h3>Commit/h3> h4>Author: a href="https://github.com/ikus060/rdiffweb">ikus060/a>/h4> p>Commit: code>2a2a2a/code> /p> p>SHA: code>02bdc0

How to get the full history of a repo?

To get the full history of a repo, use the commit_sha method.
Code var repo = new Repository("git://github.com/ikus060/rdiffweb"); var head = repo.head(); var commitId = head.commitId; // Use the commitId to get the list of commits by using the commit_sha method in the end.

Timeline

Published on: 10/06/2022 18:16:00 UTC
Last modified on: 10/06/2022 23:36:00 UTC

References