Created
December 17, 2021 16:57
-
-
Save aparkerlue/cd581f36b2b87fd00f57562dbf6f32b8 to your computer and use it in GitHub Desktop.
Bash function to list Git index and working tree files in a tree-like format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: shell-script; sh-shell: bash; coding: utf-8; -*- | |
git-tree-files() { | |
git ls-files "$@" | tree -a --fromfile . | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment