Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add method to query environment
  • Loading branch information
teeberg committed Jan 22, 2015
commit 34c0831453355e09222ccc6665782d7070f5ddab
3 changes: 3 additions & 0 deletions git/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,9 @@ def as_text(stdout_value):
else:
return stdout_value

def environment(self):
return self._environment

def set_environment(self, **kwargs):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From looking at the implementation, I'd be tempted to call this method update_environment. set_environment seems to be more like this:

res = self._environment
self._environment = kwargs
return res

"""
Set environment variables for future git invocations. Return all changed
Expand Down