Update "docs shell --update" functions and docs
Improve docs shell --update
& related functions and docs.
Details
- Refresh index before checking for new changes:
$ git update-index --refresh
- Update
git diff-index HEAD--
togit diff-files --quiet --ignore-submodules --
(the previous function was returning false-positive results for unstaged changes) - Check the branch before checkout master:
$ git branch --show-current | grep 'master'
- Add a flag for forks
docs shell --update --fork
(necessary to push toorigin
) - Only push to origin if using a fork
- Use git_pull_check for non-forks
- Source all files on reconfigure
- Minor fixes: Export variables