mirror of
				https://github.com/ItsDrike/dotfiles.git
				synced 2025-10-31 07:56:36 +00:00 
			
		
		
		
	Add git aliases for line information
This commit is contained in:
		
							parent
							
								
									4f7135555b
								
							
						
					
					
						commit
						511b24e589
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -56,6 +56,9 @@ | ||||||
| 
 | 
 | ||||||
|     find-merge = "!sh -c 'commit=$0 && branch=${1:-HEAD} && (git rev-list $commit..$branch --ancestry-path | cat -n; git rev-list $commit..$branch --first-parent | cat -n) | sort -k2 -s | uniq -f1 -d | sort -n | tail -1 | cut -f2'" |     find-merge = "!sh -c 'commit=$0 && branch=${1:-HEAD} && (git rev-list $commit..$branch --ancestry-path | cat -n; git rev-list $commit..$branch --first-parent | cat -n) | sort -k2 -s | uniq -f1 -d | sort -n | tail -1 | cut -f2'" | ||||||
|     show-merge = "!sh -c 'merge=$(git find-merge $0 $1) && [ -n \"$merge\" ] && git show $merge'" |     show-merge = "!sh -c 'merge=$(git find-merge $0 $1) && [ -n \"$merge\" ] && git show $merge'" | ||||||
|  | 
 | ||||||
|  | 	comitter-lines = "!git log --author=\"$1\" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf \"added lines: %s, removed lines: %s, total lines: %s\\n\", add, subs, loc }' #" | ||||||
|  |     total-lines = "!git ls-files | xargs cat | wc -l" | ||||||
| [credential] | [credential] | ||||||
|     helper = store --file ~/.config/git/git-credentials |     helper = store --file ~/.config/git/git-credentials | ||||||
| [core] | [core] | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue