mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Adding option to omit config in git-info
This commit is contained in:
parent
274b3dc819
commit
b26c6524b5
|
|
@ -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`:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
Loading…
Reference in a new issue