# git_cat : cat all git objects # find .git/objects/ -type f|cut -c14-15,17-20|xargs -I {} sh -c "echo '\nFor {}:' ; git cat-file -p {}" function git_cat (){ for o in $(find .git/objects/ -type f|cut -c14-15,17-20); do echo $(tput bold) $o \($(tput setaf 1) $(git cat-file -t $o)$(tput sgr0)$(tput bold) \):$(tput sgr0) git cat-file -p $o done; }