Is there any way to make git-flow tell me ahead of time the exact git commands it will execute when I do a flow command; or tell me as it is dong it?
All i can see the output and a summary?
Is there any way to make git-flow tell me ahead of time the exact git commands it will execute when I do a flow command; or tell me as it is dong it?
All i can see the output and a summary?
Use the
--showcommands
switch, for instance:You can use Git's
GIT_TRACE
environment variable to get a detailed trace of commands executed. For example:... displays ...
If you want more details than that, you can use the
sh
shellxtrace
option:Edit the
git-flow
script and addset -x
right after the#!/bin/sh
first line. Executing the above command,git flow feature start bar
, would display a lot of information (more than can be included in an answer).You can see what each command does by checking the source. It’s well documented so you can understand what is happening even without knowing bash.
Actually, after checking the source, there indeed seems to be a way to log the commands git flow uses internally; at least most of them. The functionality was introduced with this commit and hints of a
show_commands
setting. You should be able to enable it using--show_commands
, and it will print out most git commands it uses internally.Some commands have a verbose flag, but I believe the answer to your question is "No".