Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf347c6d

Browse files
committed
added support for GIT_PYTHON_TRACE=='full', thx to SRabbelier for the suggestion
1 parent93ad8da commitf347c6d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎lib/git/cmd.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ def execute(self, command,
8484
tuple(int(status), str(output)) # with_status = True
8585
"""
8686

87-
ifGIT_PYTHON_TRACE:
88-
printcommand
87+
ifGIT_PYTHON_TRACEandnotGIT_PYTHON_TRACE=='full':
88+
print' '.join(command)
8989

9090
# Allow stderr to be merged into stdout when with_stderr is True.
9191
# Otherwise, throw stderr away.
@@ -117,6 +117,9 @@ def execute(self, command,
117117
raiseGitCommandError("%s returned exit status %d"
118118
% (str(command),status))
119119

120+
ifGIT_PYTHON_TRACE=='full':
121+
print"%s %d: '%s'"% (command,status,stdout_value)
122+
120123
# Allow access to the command's status code
121124
ifwith_status:
122125
return (status,stdout_value)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp