query
On this page

commitIdFromGitRepo

lib.sources.commitIdFromGitRepo

Docs pulled from | This Revision | 10 minutes ago


Get the commit id of a git repo.

Inputs

path

1. Function argument

Examples

commitIdFromGitRepo usage example

commitIdFromGitRepo <nixpkgs/.git>

Noogle detected

Aliases

Implementation

The following is the current implementation of this function.

commitIdFromGitRepo = path:
    let commitIdOrError = _commitIdFromGitRepoOrError path;
    in commitIdOrError.value or (throw commitIdOrError.error);