Merge pull request #166 from Frusty/master

Option to omit config on git-info
This commit is contained in:
TJ Holowaychuk 2013-02-19 09:47:57 -08:00
commit d8492e68eb
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> ## git-create-branch <name>
Create local and remote 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 "$(most_recent_commit)\n"
echo "Type 'git log' for more commits, or 'git show <commit id>' for full commit details.\n" echo "Type 'git log' for more commits, or 'git show <commit id>' for full commit details.\n"
echo "## Configuration (.git/config):\n" if test "$1" != "--no-config"; then
echo "$(get_config)\n" echo "## Configuration (.git/config):\n"
echo "$(get_config)\n"
fi