mirror of
https://github.com/flatpak/flatpak.git
synced 2026-05-18 21:55:22 -04:00
common: Document that get_latest_commit() can return NULL
It's possible for the "latest_commit" field of a FlatpakInstalledRef to be NULL, which I think happens if the ref is no longer in the remote.[1][2][3] So this commit documents the possibility of flatpak_installed_ref_get_latest_commit() returning NULL. [1] https://github.com/flatpak/flatpak/issues/309 [2] https://github.com/flatpak/flatpak/commit/6b4402b60 [3] https://github.com/flatpak/flatpak/commit/230e18db7 Closes: #2289 Approved by: matthiasclasen
This commit is contained in:
committed by
Atomic Bot
parent
27a611d4eb
commit
5ddca0fc36
@@ -280,7 +280,7 @@ flatpak_installed_ref_get_origin (FlatpakInstalledRef *self)
|
||||
*
|
||||
* Gets the latest commit of the ref.
|
||||
*
|
||||
* Returns: (transfer none): the latest commit
|
||||
* Returns: (transfer none) (nullable): the latest commit
|
||||
*/
|
||||
const char *
|
||||
flatpak_installed_ref_get_latest_commit (FlatpakInstalledRef *self)
|
||||
|
||||
Reference in New Issue
Block a user