mirror of
				https://git.proxmox.com/git/libgit2
				synced 2025-10-31 16:14:28 +00:00 
			
		
		
		
	 f917481ee8
			
		
	
	
		f917481ee8
		
	
	
	
	
		
			
			Depending on the operation, we need to consider gitattributes in both the work dir and the index. This adds a parameter to all of the gitattributes related functions that allows user control of attribute reading behavior (i.e. prefer workdir, prefer index, only use index). This fix also covers allowing us to check attributes (and hence do diff and status) on bare repositories. This was a somewhat larger change that I hoped because it had to change the cache key used for gitattributes files.
		
			
				
	
	
		
			5 lines
		
	
	
		
			48 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			5 lines
		
	
	
		
			48 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| * bar
 | |
| *.txt -foo beep=10
 | |
| *.md blargh=goop -bar
 | |
| 
 |