aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTeddy Wing2021-05-30 23:42:32 +0200
committerTeddy Wing2021-05-30 23:42:32 +0200
commit83d581d674bfd1b28a9dd047a649822e882759bc (patch)
tree9dc75127f5e3bcb63300329ef4f731ad7b601b03 /src
parent03f632836d043e63804598a5d661ba8957a7706b (diff)
downloadreflectub-83d581d674bfd1b28a9dd047a649822e882759bc.tar.bz2
main::update_mtime(): Add function documentation
Diffstat (limited to 'src')
-rw-r--r--src/main.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index bae2da8..fe6836d 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -156,6 +156,9 @@ fn update<P: AsRef<Path>>(
Ok(())
}
+/// Set the mtime of the repository to GitHub's `updated_at` time.
+///
+/// Used for CGit "age" sorting.
fn update_mtime<P: AsRef<Path>>(
repo_path: P,
repo: &github::Repo,