commitIdFromGitRepo
lib.commitIdFromGitRepo
Docs pulled from | This Revision | 4 days ago
Get the commit id of a git repo.
Inputs
- path
- 
1. Function argument 
Examples
commitIdFromGitRepo usage example
commitIdFromGitRepo <nixpkgs/.git>
Noogle detected
Implementation
The following is the current implementation of this function.
commitIdFromGitRepo =
    path:
    let
      commitIdOrError = _commitIdFromGitRepoOrError path;
    in
    commitIdOrError.value or (throw commitIdOrError.error);