Skip to content

Commit

Permalink
Merge pull request tj#166 from Frusty/master
Browse files Browse the repository at this point in the history
Option to omit config on git-info
  • Loading branch information
tj committed Feb 19, 2013
2 parents 274b3dc + b26c652 commit d8492e6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`:
Expand Down
6 changes: 4 additions & 2 deletions bin/git-info
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d8492e6

Please sign in to comment.