| SHTK_GIT_UPDATE(3) | Library Functions Manual | SHTK_GIT_UPDATE(3) |
shtk_git_update —
Updates an existing working copy of a Git
repository
shtk_import git
shtk_git_update |
branch directory |
The shtk_git_update function updates the
existing working copy in directory to
branch.
In general, you should resort to using the higher-level shtk_git_fetch(3) wrapper as it properly handles the case of missing working copies.
shtk_git_update master /usr/src
shtk_git_update aborts execution with an
error if the given directory does not yet exist or if
the Git update operation fails.
shtk_git_update first appeared in
shtk 1.8.
| January 6, 2025 | Debian |