Skip to content

Commit 3307d4d

Browse files
committed
Add doc comments
1 parent 6a64be3 commit 3307d4d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

gitoxide-core/src/repository/commit.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ pub fn verify(repo: gix::Repository, rev_spec: Option<&str>) -> Result<()> {
4747
Ok(())
4848
}
4949

50+
/// Note that this is a quick first prototype that lacks some of the features provided by `git
51+
/// verify-commit`.
5052
pub fn sign(repo: gix::Repository, rev_spec: Option<&str>, mut out: impl std::io::Write) -> Result<()> {
5153
let rev_spec = rev_spec.unwrap_or("HEAD");
5254
let object = repo

src/plumbing/options/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,8 @@ pub mod commit {
912912
/// A specification of the revision to verify, or the current `HEAD` if unset.
913913
rev_spec: Option<String>,
914914
},
915-
/// TODO: add description.
915+
/// Sign a commit and print the signed commit's id to stdout. This command does not change
916+
/// symbolic refs.
916917
Sign {
917918
/// A specification of the revision to sign, or the current `HEAD` if unset.
918919
rev_spec: Option<String>,

0 commit comments

Comments
 (0)