Skip to content

Commit 21620bc

Browse files
committed
Note that git tree --help will show alias expansion, only -h shows help message
1 parent 4523bce commit 21620bc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ git tree
3232
```
3333
-i, --indent INDENT Set indentation (2-10 spaces)
3434
-v, --version Show version
35-
-h, --help Show help message
35+
-h Show help message
3636
```
3737

38+
**Note:** Due to how git handles aliases, when using `git tree --help`, git will show the alias expansion instead of the help message. Use `git tree -h` to see the help message.
39+
3840
## Compatibility
3941
git-status-tree supports:
4042
* Git (http://git-scm.com): version 1.8+

bin/git_add_alias_tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ BIN_DIR=`pwd`
55
popd > /dev/null
66

77
git config --global status-tree.indent 4
8-
git config --global alias.tree "!sh -c \"$BIN_DIR/git-status-tree \\\"\\\$@\\\"\" --"
8+
git config --global alias.tree "!exec $BIN_DIR/git-status-tree"
99
echo '#############################'
1010
echo '# "git tree" has been added #'
1111
echo '# Run: git tree #'

0 commit comments

Comments
 (0)