forked from nvie/gitflow
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add command flags help to README.mdown. Add contrib/make-docflags.sh …
…to assist in maintaining this.
- Loading branch information
Showing
2 changed files
with
159 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
for cmd in $(./git-flow help | grep '^ ' | awk '{print $1}') ; do | ||
rm -f flags.doc | ||
git flow $cmd help 2>&1 | grep "git flow" | sed 's/^usage://' | sed 's/^ *//' | while read cmd ; do | ||
echo " " $cmd | ||
cmd=$(echo $cmd | sed 's/<.*>//' | tr '[]' ' ') | ||
eval "$cmd -h" 2>&1 | grep '^ ' >> flags.doc | ||
done | ||
|
||
echo | ||
echo ' Flags:' | ||
cat flags.doc | sed 's/^/ /' | sort -u | ||
echo | ||
echo | ||
echo | ||
done | ||
rm -rf flags.doc |