Browse code

Add config alias tree

Robert Cranston authored on 19/12/2022 05:55:01
Showing 1 changed files

... ...
@@ -218,6 +218,12 @@
218 218
 	  | eval \"LESS=${LESS-FRX} $(git var GIT_PAGER)\"; \
219 219
 	}; f"
220 220
 
221
+	; Tree.
222
+	tree = "!f() { : git ls-files ; \
223
+	  git config --get-colorbool color.tree && color_tree=always; \
224
+	  git ls-files \"$@\" | tree -n ${color_tree+-C} --fromfile; \
225
+	}; f"
226
+
221 227
 	; Log.
222 228
 	l = "!f() { : git log ; \
223 229
 	  git config --get-colorbool color.diff && color_diff=always; \