I have a Raspberry Pi running Raspbian (Debian Wheezy). I entered
set in a terminal and was surprised by the long list. This seems to be almost entirely git functions — ~3700 lines of them.
__git_all_commands= __git_diff_common_options=$'--stat --numstat --shortstat --summary\n\t\t\t--patch-with-stat --name-only ...
My question is, how did they get there and why?
I have occasionally used
git to get packages.
I have checked all the usual suspects
I found a script
/etc/bash_completion.d/git (I had never heard of bash_completion before). I have to do some more study to work out what this does, and exactly where is is called.
I still need to figure out WHY I would want to run this in every login shell when I only use
git once or twice a year. (The Raspberry Pi is not exactly over endowed with RAM). This doesn't seem to happen on my Mac.