Skip to content

Commit

Permalink
If we are in verbose mode, output what we are about to run (or return)
Browse files Browse the repository at this point in the history
Signed-off-by: Anand Kumria <wildfire@progsoc.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Anand Kumria authored and Junio C Hamano committed Aug 12, 2008
1 parent 21a5075 commit ee06427
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contrib/fast-import/git-p4
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ def p4_build_cmd(cmd):
can be done more easily.
"""
real_cmd = "%s %s" % ("p4", cmd)
if verbose:
print real_cmd
return real_cmd

def die(msg):
Expand Down

0 comments on commit ee06427

Please sign in to comment.