list_file_commit_history
async
¶
list_file_commit_history(
repository_name: RepositoryName,
file_path: Path,
*,
config_overrides: Optional[AsyncCodeCommitClientConfig] = 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/async_code_commit.py
3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 | |