MCPcopy Create free account
hub / github.com/isomorphic-git/isomorphic-git / formatAuthor

Function formatAuthor

src/utils/formatAuthor.js:1–4  ·  view source on GitHub ↗
({ name, email, timestamp, timezoneOffset })

Source from the content-addressed store, hash-verified

1export function formatAuthor({ name, email, timestamp, timezoneOffset }) {
2 timezoneOffset = formatTimezoneOffset(timezoneOffset)
3 return `${name} <${email}> ${timestamp} ${timezoneOffset}`
4}
5
6// The amount of effort that went into crafting these cases to handle
7// -0 (just so we don't lose that information when parsing and reconstructing)

Callers 2

renderMethod · 0.90
renderHeadersMethod · 0.90

Calls 1

formatTimezoneOffsetFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…