list_file_commit_history
¶
list_file_commit_history(
repository_name: RepositoryName,
file_path: Path,
*,
config_overrides: Optional[CodeCommitClientConfig] = None,
commit_specifier: Optional[CommitName] = None,
max_results: Optional[Limit] = None,
next_token: Optional[NextToken] = None,
) -> ListFileCommitHistoryResponse
Retrieves a list of commits and changes to a specified file.
Parameters:
-
repository_name(RepositoryName) –The name of the repository that contains the file.
-
commit_specifier(Optional[CommitName], default:None) –The fully quaified reference that identifies the commit that contains the file. For example, you can specify a full commit ID, a tag, a branch name, or a reference such as
refs/heads/main. If none is provided, the head commit is used. -
file_path(Path) –The full path of the file whose history you want to retrieve, including the name of the file.
-
max_results(Optional[Limit], default:None) –A non-zero, non-negative integer used to limit the number of returned results.
-
next_token(Optional[NextToken], default:None) –An enumeration token that allows the operation to batch the results.
Raises:
-
CommitDoesNotExistException–The specified commit does not exist or no commit was specified, and the specified repository has no default branch.
-
CommitRequiredException–A commit was not specified.
-
EncryptionIntegrityChecksFailedException–An encryption integrity check failed.
-
EncryptionKeyAccessDeniedException–An encryption key could not be accessed.
-
EncryptionKeyDisabledException–The encryption key is disabled.
-
EncryptionKeyNotFoundException–No encryption key was found.
-
EncryptionKeyUnavailableException–The encryption key is not available.
-
InvalidCommitException–The specified commit is not valid.
-
InvalidContinuationTokenException–The specified continuation token is not valid.
-
InvalidMaxResultsException–The specified number of maximum results is not valid.
-
InvalidRepositoryNameException–A specified repository name is not valid.
This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
-
RepositoryDoesNotExistException–The specified repository does not exist.
-
RepositoryNameRequiredException–A repository name is required, but was not specified.
-
TipsDivergenceExceededException–The divergence between the tips of the provided commit specifiers is too great to determine whether there might be any merge conflicts. Locally compare the specifiers using
git diffor a diff tool. -
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_codecommit/_services/code_commit.py
3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 | |