Adding option to omit config in git-info

This commit is contained in:
Jan Krueger 2013-02-19 17:54:28 +01:00
parent 274b3dc819
commit b26c6524b5
2 changed files with 10 additions and 2 deletions

View file

@ -385,6 +385,12 @@ $ git info
```
If you wish to omit the config section, you may use `--no-config`:
```bash
$ git info --no-config
```
## git-create-branch <name>
Create local and remote branch `name`:

View file

@ -36,5 +36,7 @@ echo "## Most Recent Commit:\n"
echo "$(most_recent_commit)\n"
echo "Type 'git log' for more commits, or 'git show <commit id>' for full commit details.\n"
echo "## Configuration (.git/config):\n"
echo "$(get_config)\n"
if test "$1" != "--no-config"; then
echo "## Configuration (.git/config):\n"
echo "$(get_config)\n"
fi