code: def log(duration, message=None, use_last_commit_message=False):
      
      branch = git.branch
      issue = jira.get_issue(branch)
      # Create the comment
      comment = "Working on issue %s" % branch
      if message:
          comment = message
      elif use_last_commit_message:
          comment = git.get_last_commit_message()
  
      if issue:
          # If the duration is provided use it, otherwise use the elapsed time since the last mark
          duration = jira.get_elapsed_time(issue) if duration == '.' else duration
  
          if duration:
              # Add the worklog
              jira.add_worklog(issue, timeSpent=duration, adjustEstimate=None, newEstimate=None, reduceBy=None,
                               comment=comment)
  
              print "Logged %s against issue %s (%s)" % (duration, branch, comment)
          else:
              print "No time logged, less than 0m elapsed."
docs: Log time against the current active issue