Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nix
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 57b95057311d
Choose a base ref
...
head repository: NixOS/nix
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 7480f4f9a478
Choose a head ref
  • 4 commits
  • 2 files changed
  • 1 contributor

Commits on Jul 27, 2017

  1. builtins.fetchgit: Cache hash -> store path mappings

    This prevents an expensive call to addToStore() in the cached case.
    edolstra committed Jul 27, 2017

    Verified

    This commit was signed with the committer’s verified signature.
    slawekjaranowski Slawomir Jaranowski
    Copy the full SHA
    6d7de7f View commit details
  2. Copy the full SHA
    69deca1 View commit details
  3. builtins.fetchgit: Respect tarball-ttl

    I.e. if the local ref is more recent than tarball-ttl seconds, then
    don't check the remote.
    edolstra committed Jul 27, 2017
    Copy the full SHA
    9f64cb8 View commit details
  4. builtins.fetchgit: Support specifying commit hashes

    This adds an argument "rev" specififying the Git commit hash. The
    existing argument "rev" is renamed to "ref". The default value for
    "ref" is "master". When specifying a hash, it's necessary to specify a
    ref since we're not cloning the entire repository but only fetching a
    specific ref.
    
    Example usage:
    
      builtins.fetchgit {
        url = https://github.com/NixOS/nixpkgs.git;
        ref = "release-16.03";
        rev = "c1c0484041ab6f9c6858c8ade80a8477c9ae4442";
      };
    edolstra committed Jul 27, 2017
    Copy the full SHA
    7480f4f View commit details
Loading