builtins.fetchgit: Support importing a working tree
For example, you can write src = fetchgit ./.; and if ./. refers to an unclean working tree, that tree will be copied to the Nix store. This removes the need for "cleanSource".
This commit is contained in:
		
							parent
							
								
									197922ea4e
								
							
						
					
					
						commit
						72cd52c3cd
					
				
					 7 changed files with 54 additions and 17 deletions
				
			
		|  | @ -17,7 +17,8 @@ struct GitInfo | |||
| }; | ||||
| 
 | ||||
| GitInfo exportGit(ref<Store> store, const std::string & uri, | ||||
|     const std::string & ref, const std::string & rev = "", | ||||
|     std::experimental::optional<std::string> ref = {}, | ||||
|     const std::string & rev = "", | ||||
|     const std::string & name = ""); | ||||
| 
 | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue