(message)
return footers
Returns: (dict) A dictionary of commit message footer entries.
Returns: (dict) A dictionary of commit message footer entries.
Returns : ( dict ) A dictionary of commit message footer entries .
def GetCommitMessageFooterMap(message):
  """Returns: (dict) A dictionary of commit message footer entries.
  """
  footers = {}

  # Extract the lines in the footer block.
  lines = []
  for line in message.strip().splitlines():
    line = line.strip()
    if len(line) == 0:
      del(lines[:])
      continue
    lines.append(line)

  # Parse the footer
  for line in lines:
    m = COMMIT_FOOTER_ENTRY_RE.match(line)
    if not m:
      # If any single line isn't valid, continue anyway for compatibility with
      # Gerrit (which itself uses JGit for this).
      continue
    footers[m.group(1)] = m.group(2).strip()
  return footers
def GetCommitMessageFooterMap ( message ) : footers = { } # Extract the lines in the footer block. lines = [ ] for line in message . strip ( ) . splitlines ( ) : line = line . strip ( ) if len ( line ) == 0 : del ( lines [ : ] ) continue lines . append ( line ) # Parse the footer for line in lines : m = COMMIT_FOOTER_ENTRY_RE . match ( line ) if not m : # If any single line isn't valid, continue anyway for compatibility with # Gerrit (which itself uses JGit for this). continue footers [ m . group ( 1 ) ] = m . group ( 2 ) . strip ( ) return footers