We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd04fa7 commit d54d1b2Copy full SHA for d54d1b2
src/rebase.rs
@@ -174,9 +174,9 @@ impl <'repo> Rebase<'repo> {
174
175
/// Finishes a rebase that is currently in progress once all patches have
176
/// been applied.
177
- pub fn finish(&mut self, signature: &Signature) -> Result<(), Error> {
+ pub fn finish(&mut self, signature: Option<&Signature>) -> Result<(), Error> {
178
unsafe {
179
- try_call!(raw::git_rebase_finish(self.raw, signature.raw()));
+ try_call!(raw::git_rebase_finish(self.raw, signature.map(|s| s.raw())));
180
}
181
182
Ok(())
@@ -407,5 +407,6 @@ mod tests {
407
assert_eq!(commit.author().name(), Some("testname"));
408
assert_eq!(commit.author().email(), Some("testemail"));
409
410
+ rebase.finish(None).unwrap();
411
412
0 commit comments