フロー コマンドを実行するときに実行する正確な git コマンドを事前に git-flow に通知させる方法はありますか。または、それがドンだと教えてください。
出力と要約を見ることができますか?
Git のGIT_TRACE
環境変数を使用して、実行されたコマンドの詳細なトレースを取得できます。例えば:
GIT_TRACE=true git flow feature start bar
... ディスプレイ ...
trace: exec: 'git-flow' 'feature' 'start' 'bar'
trace: run_command: 'git-flow' 'feature' 'start' 'bar'
trace: built-in: git 'config' '--get' 'gitflow.branch.master'
trace: built-in: git 'branch' '--no-color'
trace: built-in: git 'config' '--get' 'gitflow.branch.develop'
trace: built-in: git 'branch' '--no-color'
trace: built-in: git 'config' '--get' 'gitflow.branch.master'
trace: built-in: git 'config' '--get' 'gitflow.branch.develop'
trace: built-in: git 'config' '--get' 'gitflow.branch.master'
trace: built-in: git 'config' '--get' 'gitflow.branch.develop'
trace: built-in: git 'config' '--get' 'gitflow.origin'
trace: built-in: git 'config' '--get' 'gitflow.prefix.feature'
trace: built-in: git 'branch' '--no-color'
trace: built-in: git 'branch' '-r' '--no-color'
trace: built-in: git 'branch' '--no-color'
trace: built-in: git 'branch' '-r' '--no-color'
trace: built-in: git 'checkout' '-b' 'feature/bar' 'develop'
Switched to a new branch 'feature/bar'
Summary of actions:
- A new branch 'feature/bar' was created, based on 'develop'
- You are now on branch 'feature/bar'
Now, start committing on your feature. When done, use:
git flow feature finish bar
それ以上の詳細が必要な場合は、sh
シェル xtrace
オプションを使用できます。
コマンド、ケース コマンド、選択コマンド、または算術コマンドの各単純コマンドを展開した後、PS4 の展開された値を表示し、続いてコマンドとその展開された引数または関連する単語リストを表示します。
スクリプトを編集し、最初の行の直後にgit-flow
追加します。上記のコマンドを実行すると、多くの情報が表示されます (回答に含めることができる以上の情報)。set -x
#!/bin/sh
git flow feature start bar
たとえば、次のようにスイッチを使用--showcommands
します。
git flow feature start FEATURENAME --showcommands
一部のコマンドには冗長フラグがありますが、あなたの質問に対する答えは「いいえ」だと思います。