diff options
| author | Teddy Wing | 2020-09-17 03:04:45 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2020-09-17 03:04:45 +0200 | 
| commit | be7ba88e7d746936b7bc3ccd0ea83f46937610fe (patch) | |
| tree | 38ec82e80db80d351c463b351c2324d6dff8b557 /src | |
| parent | e6dee128a2e1cf051fd4f8f2ee810ee0a9a3c7c0 (diff) | |
| download | git-todo-be7ba88e7d746936b7bc3ccd0ea83f46937610fe.tar.bz2 | |
lib.rs: Add doc comments
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib.rs | 8 | 
1 files changed, 8 insertions, 0 deletions
| @@ -18,6 +18,13 @@ pub struct Todos<'a> {  }  impl Todos<'_> { +    /// Write TODO lines. +    /// +    /// Writes TODO lines since `tree` to `write_to`. +    /// +    /// # Panics +    /// +    /// Panics if writing to `write_to` fails.      pub fn write_since<W: Write>(          &self,          tree: Tree<'_>, @@ -57,6 +64,7 @@ impl Todos<'_> {          Ok(())      } +    /// Get a Git tree for the master branch.      pub fn master_tree(&self) -> Result<Tree<'_>, Error> {          let master = self.repo.find_branch("master", git2::BranchType::Local)?; | 
