Set the identity to be used for reference operations. Updates to some references also append data to their reflog. You can use this method to set what identity will be used. If none is set, it will be read from the configuration.
(self, name: Optional[str], email: Optional[str])
| 1588 | return (maybe_string(cname[0]), maybe_string(cemail[0])) |
| 1589 | |
| 1590 | def set_ident(self, name: Optional[str], email: Optional[str]) -> None: |
| 1591 | """Set the identity to be used for reference operations. |
| 1592 | |
| 1593 | Updates to some references also append data to their |
| 1594 | reflog. You can use this method to set what identity will be |
| 1595 | used. If none is set, it will be read from the configuration. |
| 1596 | """ |
| 1597 | |
| 1598 | err = C.git_repository_set_ident(self._repo, to_bytes(name), to_bytes(email)) |
| 1599 | check_error(err) |
| 1600 | |
| 1601 | def revert(self, commit: Commit) -> None: |
| 1602 | """ |